Documentation
¶
Overview ¶
Package logger Colorful logging with additional time and level output
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Colors ¶
type Colors struct {
// contains filtered or unexported fields
}
Colors ANSI CLI colors
type LogRow ¶
type LogRow struct { Level string `json:"level"` Time string `json:"time"` Message string `json:"message"` LevelInt int `json:"level_int"` Caller string `json:"caller,omitempty"` }
LogRow represents a log entry and is serialized to JSON.
type Logger ¶
type Logger struct { MinLevel string TimeFormat string // use example date: "2006-01-02 15:04:05.000" or "15:04:05.000" UseColor bool UseJSON bool ReportCaller bool Output io.Writer }
Logger settings
Click to show internal directories.
Click to hide internal directories.