glogg

command module
v0.0.0-...-3ba801b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

GloGG

GLogG Google Logging command line Small and agnostic Google Logging Client command line implementation written in Go

Local build

You do need to install a Go on your local computer. Follow the official documentation Alternatively you can built it via a Docker container. https://hub.docker.com/_/golang

go mod init glogg
go install glogg

## Optional: Add local $PATH
PATH="$PATH:$HOME/go/bin"

# More information
glogg --help
glogg log --help

How to install (Live server)

  • Download/compile glogg binary file and store it in /usr/bin/glogg

  • Set your Google Service Account credential file. It should allow you write logs.

        export GOOGLE_APPLICATION_CREDENTIALS="/my/credentials/directory/log-writer.json"
    
  • Copy and edit .glogg.yaml configuration file and set in your $HOME directory

  • Write your first log!

    glogg log -m "foo" -s "DEBUG"
    

Documentation

Overview

Copyright © 2020 Alejandro Quisbert <alexandro@autistici.org>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL