Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextFormatter ¶
type TextFormatter struct {
// Set to true to bypass checking for a TTY before outputting colors.
ForceColors bool
// Force disabling colors.
DisableColors bool
// Disable timestamp logging. useful when output is redirected to logging
// system that already adds timestamps.
DisableTimestamp bool
// Enable logging of just the time passed since beginning of execution.
ShortTimestamp bool
// Timestamp format to use for display when a full timestamp is printed.
TimestampFormat string
// The fields are sorted by default for a consistent output. For applications
// that log extremely frequently and don't use the JSON formatter this may not
// be desired.
DisableSorting bool
// Set custom 256-bit colors for the colored output.
// Available colors:
// - black
// - red
// - green
// - yellow
// - blue
// - magenta
// - cyan
// - white
// - 0...255 (256 colors)
//
// Available attributes:
// b = bold foreground
// B = blink foreground
// u = underline foreground
// i = inverse
//
// Style should be formatted as: "foregroundColor+attributes:backgroundColor+attributes"
// For example,
// "white+u:black" - display underlined white text on black background
// "red+b:white" - display red with bold text on white background
Colors *Colors
}
Click to show internal directories.
Click to hide internal directories.
