/logrus-gce

Google Cloud Engine Logging Formatter for Logrus

Primary LanguageGoApache License 2.0Apache-2.0

logrus-gce

Google Cloud Engine Logging Formatter for Logrus

Forked from https://github.com/znly/logrus-gce for use with the Sharescape stack.

How to use

package main

import (
	log "github.com/Sirupsen/logrus"
    logrusgce "github.com/znly/logrus-gce"
)

func main() {
    log.SetFormatter(logrusgce.NewGCEFormatter(true))
    log.WithField("myfield", "myvalue").Info("hey")
}