Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 315 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 315 Bytes

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