Skip to content

Google Cloud Engine Logging Formatter for Logrus

License

Notifications You must be signed in to change notification settings

vgoltv/logrus-gce

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logrus-gce

Google Cloud Engine Logging Formatter for Logrus

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")
}

About

Google Cloud Engine Logging Formatter for Logrus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%