Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogging ¶
There are seven log levels supported by logrus but let's not expose all that to the user. Instead let's say we have the following effective modes of logging: "debug", "verbose", "quiet" and "normal" i.e. the default.
"Quiet" shows ErrorLevel messages and higher. "Normal" shows WarnLevel messages and higher. "Verbose" shows DebugLevel messages and higher. And "debug" is the same as Verbose but we add the line number and the function name to each log message for extra debugging.
We're expecting only one of the bool params to be set, but if there are multiple set we'll accept it and the more verbose option will take precedence.
Types ¶
This section is empty.