Skip to content

PentoHQ/logrus-gce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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