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.
Click to show internal directories.
Click to hide internal directories.