Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTimestampFormat = "2006-01-02T15:04:05.000000000Z07:00"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorScheme ¶
type Instance ¶
type Instance struct { // Use colors if TTY detected UseColors bool // Disable timestamp logging. useful when output is redirected to logging // system that already adds timestamps. DisableTimestamp bool // Print level names in `lowercase` instead of `UPPERCASE` LowercaseLevels bool // Enable logging the full timestamp when a TTY is attached instead of just // the time passed since beginning of execution. FullTimestamp bool // Timestamp format to use for display when a full timestamp is printed. TimestampFormat string PrefixFieldName string PrefixFieldWidth int FuncFieldName string sync.Once // contains filtered or unexported fields }
func (*Instance) SetColorScheme ¶
func (f *Instance) SetColorScheme(colorScheme *ColorScheme)
Click to show internal directories.
Click to hide internal directories.