glog

package
v0.0.0-...-ea2badb Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2015 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlogFormatter

type GlogFormatter struct {
	// contains filtered or unexported fields
}

func New

func New() *GlogFormatter

func NewGlogFormatter

func NewGlogFormatter() *GlogFormatter

func (*GlogFormatter) Format

func (f *GlogFormatter) Format(context log.LogContext) []byte

Log lines have this form:

Lmmdd hh:mm:ss.uuuuuu threadid file:line] msg...

where the fields are defined as follows:

L                A single character, representing the log level (eg 'I' for INFO)
mm               The month (zero padded; ie May is '05')
dd               The day (zero padded)
hh:mm:ss.uuuuuu  Time in hours, minutes and fractional seconds
threadid         The space-padded thread ID as returned by GetTID()
file             The file name
line             The line number
msg              The user-supplied message

func (*GlogFormatter) ShouldRuntimeCaller

func (f *GlogFormatter) ShouldRuntimeCaller() bool

This will always be true.

Jump to

Keyboard shortcuts

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