Documentation ¶
Index ¶
- func Debug(args ...interface{}) string
- func Error(args ...interface{}) string
- func FatalExit(args ...interface{})
- func Info(args ...interface{}) string
- func Pause()
- func Raw(message string)
- func Resume()
- func Start(myServerEnable, debugEnable, silentEnable, nothingEnable bool)
- func Stop()
- func Trace(args ...interface{}) string
- func Warn(args ...interface{}) string
- type LogMode
- type LogStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalExit ¶
func FatalExit(args ...interface{})
FatalExit logs an error and exists the process.
Types ¶
type LogMode ¶
type LogMode int
LogMode allows to specify the verbosity of logging.
const ( NormalMode LogMode = iota DebugMode LogMode = iota SilentMode LogMode = iota TraceMode LogMode = iota NothingMode LogMode = iota )
Possible log modes.
var Mode LogMode
Mode is the current log mode in use.
type LogStrategy ¶
type LogStrategy int
LogStrategy allows to specify a log rotation strategy.
const ( NormalStrategy LogStrategy = iota DailyStrategy LogStrategy = iota StdoutStrategy LogStrategy = iota )
Possible log strategies.
var Strategy LogStrategy
Strategy is the current log strattegy used.
Click to show internal directories.
Click to hide internal directories.