Documentation ¶
Index ¶
- func Init(logLevel LogLevel)
- func Log(lvl LogLevel, flowID string, format string, values ...interface{})
- func LogAlert(flowID string, format string, values ...interface{})
- func LogCritical(flowID string, format string, values ...interface{})
- func LogDebug(flowID string, format string, values ...interface{})
- func LogEmergency(flowID string, format string, values ...interface{})
- func LogError(flowID string, format string, values ...interface{})
- func LogInfo(flowID string, format string, values ...interface{})
- func LogNotice(flowID string, format string, values ...interface{})
- func LogS(lvl LogLevel, skip int, flowID string, format string, values ...interface{})
- func LogWarning(flowID string, format string, values ...interface{})
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(logLevel LogLevel)
Init sets global LogLevel to a new value any Loglevel that is equal or lower will be logged lvl meaning ______________________________________________ 0 Emergency: system is unusable 1 Alert: action must be taken immediately 2 Critical: critical conditions 3 Error: error conditions 4 Warning: warning conditions 5 Notice: normal but significant condition 6 Informational: informational messages 7 Debug: debug-level messages
func LogCritical ¶
LogCritical logs a message with CRITICAL log level
func LogEmergency ¶
LogEmergency logs a message with EMERGENCY log level
func LogS ¶
LogS logs a message with given LogLevel and additional skip (relative to the default behavior
func LogWarning ¶
LogWarning logs a message with WARNING log level
Types ¶
type LogLevel ¶
type LogLevel int
const ( NoLog LogLevel = -1 //turn off logs if used for Init and NoOp if used for Log Emergency LogLevel = iota //Emergency: system is unusable Alert LogLevel = iota //Alert: action must be taken immediately Critical LogLevel = iota //Critical: critical conditions Error LogLevel = iota //Error: error conditions Warning LogLevel = iota //Warning: warning conditions Notice LogLevel = iota //Notice: normal but significant condition Informational LogLevel = iota //Informational: informational messages Debug LogLevel = iota //Debug: debug-level messages )