package
Version:
v0.0.0-...-1d48ea6
Opens a new window with list of versions in this module.
Published: Jan 4, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Logger struct {
Debug bool
}
An example of a logger that implements `pkg/log/Logger`. Logs to
stdout. If Debug == false then Debugf() and Infof() won't output
anything.
func (logger Logger) Debugf(format string, args ...interface{})
Log to stdout only if Debug is true.
func (logger Logger) Errorf(format string, args ...interface{})
Log to stdout always.
func (logger Logger) Infof(format string, args ...interface{})
Log to stdout only if Debug is true.
func (logger Logger) Warnf(format string, args ...interface{})
Log to stdout always.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.