Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LvlTernaryHandler ¶
LvlTernaryHandler writes all logs above the log level provide to the `yes` handler. Otherwise it will write the logs to the `no` handler. For example you might want to add stack traces to logs only if the log level is error or above:
log15ter.LvlTernaryHandler( log15.LvlError, log15.CallerStackHandler("%+v", log15.StdoutHandler), log15.StdoutHandler)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.