package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Feb 15, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package logger provides a simple log interface that you can wrap whatever
logging library you use into.
NopLogger is a Logger implementation that does nothing.
Logger is a simple common ground to wrap whatever logging library the user
prefers into.
StdLogger is a Logger implementation that wraps stdlib log package.
If passed in logger is nil, it falls back to
log.New(os.Stderr, "", log.LstdFlags)
Log is the nil-safe way of using a Logger.
If l is nil it does nothing. Otherwise it calls l.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.