formatter

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 4 Imported by: 0

README

logrus-formatter-gke

A Formatter implementation for logging on GKE

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GKELogFormatter

type GKELogFormatter struct {
	TimestampFormat string
}

GKELogFormatter formats messages for use to output to stdout on a container on GKE.

func (*GKELogFormatter) Format

func (f *GKELogFormatter) Format(entry *logrus.Entry) ([]byte, error)

Format formats log so Stackdriver Logging can construe.

Jump to

Keyboard shortcuts

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