Discover Packages
salsa.debian.org/autodeb-team/autodeb
internal
log
package
Version:
v0.20.0
Opens a new window with list of versions in this module.
Published: Aug 12, 2018
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package log provides a logger. The logger currently wraps sirupsen/logrus's
Logger but it could be easily replaced.
Level represents a logging level
We don't use logrus's level because we want to implement UnmarshalText
Also, we don't expose as many levels as logrus.
const (
ErrorLevel Level = iota
WarningLevel
InfoLevel
)
Logging levels
UnmarshalText will parse a log level
type Logger interface {
Error(...interface{})
Errorf(string , ...interface{})
Warning(...interface{})
Warningf(string , ...interface{})
Info(...interface{})
Infof(string , ...interface{})
PrefixLogger(string ) Logger
SetLevel(Level )
}
Logger is used to log error, warning and info messages
Source Files
¶
Directories
¶
Package http implements logging primitives for the http package
Package http implements logging primitives for the http package
Click to show internal directories.
Click to hide internal directories.