package
0.0.0-20181025162720-c8a214aafdbb
Repository: https://github.com/turbinelabs/nonstdlib.git
Documentation: pkg.go.dev

# Functions

ConsumeConsoleLogs allows log messages to be temporarily diverted to a channel for testing.
Debug returns a Logger to Stderr prefixed with "[debug]" if the log level is debug, otherwise it returns a no-op Logger.
Error returns a Logger to Stderr prefixed with "[error]" if the log level is error, info, or debug, otherwise it returns a no-op Logger.
Info returns a Logger to Stderr prefixed with "[info]" if the log level is info or error, otherwise it returns a no-op Logger.
Init binds the log level to a flag in the given FlagSet.
ToWriteCloser wraps a *log.Logger and provides an implementation of io.WriteCloser.

# Structs

LogMessage represents a console log level and message.