Documentation ¶
Overview ¶
Package logx provides very useful utilities for logging. I hesitate to create it, for fear we will add too much stuff to it. But LogEvery seems worth it. This packages uses the MIT license, to respect the corresponding license from kami-zh/go-capture
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = log.New(ioutil.Discard, "DEBUG: ", 0)
Debug is the package logger for debug messages. Debug messages are discarded if LogxDebug is set false.
View Source
var ( // LogxDebug controls whether the debug logger is enabled or not. In almost all cases // you should rely on the flag to change this value. If critical, you may change the // value using LogxDebug.Set("true") or LogxDebug.Set("false"). LogxDebug = logxDebug(false) )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.