Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyError = "error" KeyErr = "err" )
View Source
const ( KeyLevel = "level" KeyLog = "log" LevelTraceStr = "trace" LevelDebugStr = "debug" LevelInfoStr = "info" LevelWarnStr = "warn" LevelErrorStr = "error" LevelFatalStr = "fatal" LevelPanicStr = "panic" LevelTraceNum = 10 LevelDebugNum = 20 LevelInfoNum = 30 LevelWarnNum = 40 LevelErrorNum = 50 LevelFatalNum = 60 LevelPanicNum = 100 DefaultLevelValue = "???" DefaultLevelTraceValue = "TRC" DefaultLevelDebugValue = "DBG" DefaultLevelInfoValue = "INF" DefaultLevelWarnValue = "WRN" DefaultLevelErrorValue = "ERR" DefaultLevelFatalValue = "FTL" DefaultLevelPanicValue = "PNC" )
View Source
const ( KeyMessage = "message" KeyMsg = "msg" )
View Source
const ( KeyTime = "time" KeyTimestamp = "timestamp" KeyAtTimestamp = "@timestamp" TimeFormat = time.RFC3339 TimeFormatUnixMs = "UNIXMS" TimeFormatUnixMicro = "UNIXMICRO" DefaultTimeValue = "<nil>" )
View Source
const ( ColorBlack = iota + 30 ColorRed ColorGreen ColorYellow ColorBlue ColorMagenta ColorCyan ColorWhite ColorBold = 1 ColorDarkGray = 90 )
View Source
const (
KeyCaller = "caller"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Caller ¶
type Caller struct {
// contains filtered or unexported fields
}
func (*Caller) ExcludeKeys ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) ExcludeKeys ¶
type Level ¶
type Level struct {
// contains filtered or unexported fields
}
func (*Level) ExcludeKeys ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func (*Message) ExcludeKeys ¶
Click to show internal directories.
Click to hide internal directories.