package
Version:
v0.0.0-...-cc2f434
Opens a new window with list of versions in this module.
Published: Nov 22, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package logger provides a simple anaconda.Logger that uses the
standard library's log package.
func New(level Level) anaconda.Logger
New returns an anaconda.Logger that uses the standard library's log
package while only printing messages that are at least the given log
level.
Level is the log level threshold for for a Logger.
const (
LevelDebug Level = iota
LevelInfo
LevelNotice
LevelWarning
LevelError
LevelCritical
LevelPanic
LevelFatal
)
These constants are used by New to determine which print statements
should be printed to the log.
ParseLevel converts a string into a Level.
String returns the string representation of a Level type.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.