Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogLevel = len(logrus.AllLevels) - 2
DefaultLogLevel is the default log level value.
View Source
var DevDefaults = Options{ Level: mustFirst(strconv.Atoi(local.Getenv("INFRAKIT_LOG_DEV_LEVEL", "4"))), Stdout: false, Format: local.Getenv("INFRAKIT_LOG_DEV_FORMAT", "term"), CallStack: true, }
DevDefaults is the default options for development
View Source
var ProdDefaults = Options{ Level: 4, Stdout: false, Format: "term", CallFunc: true, }
ProdDefaults is the default options for production
Functions ¶
Types ¶
type Options ¶
type Options struct { Level int Stdout bool Format string CallFunc bool CallStack bool // DebugMatchKeyValuePairs is the '=' delimited kv pair for filtering contexts in records for DEBUG DebugMatchKeyValuePairs []string // DebugMatchExclude excludes the record if any of the context params matches those in the MatchKeyValuePairs DebugMatchExclude bool // DebugV is a value of verbosity for checking debug records where there's a context param of type DebugV DebugV int }
Options capture the logging configuration
Click to show internal directories.
Click to hide internal directories.