Documentation
¶
Index ¶
Constants ¶
View Source
const ( MAX_PREFERED_EXTRA_DATA_SIZE int = 2048 MAX_PREFERED_LOG_SIZE int = (1 << 16) - 1 - MAX_PREFERED_EXTRA_DATA_SIZE )
View Source
const ( LoggerModeTypeInfo uint64 = 1 << iota LoggerModeTypeWarning LoggerModeTypeError LoggerModeTypeFatal LoggerModeTypeDebug )
View Source
const (
LoggerOptIncludeTime uint64 = 1 << iota
)
Variables ¶
View Source
var Modes = map[uint64]string{ LoggerModeTypeInfo: "info", LoggerModeTypeWarning: "warning", LoggerModeTypeError: "error", LoggerModeTypeFatal: "fatal", LoggerModeTypeDebug: "debug", }
Functions ¶
func RegisterMode ¶
RegisterMode registers a logger type into the types map.
Types ¶
Click to show internal directories.
Click to hide internal directories.