modulepackage
0.0.0-20190701134521-659346cb927a
Repository: https://github.com/classzz/czzlog.git
Documentation: pkg.go.dev
# README
czzlog
Package czzlog defines a logger interface and provides a default implementation of a subsystem-aware leveled logger implementing the same interface.
Installation
$ go get github.com/bourbaki-czz/czzlog
License
Package btclog is licensed under the copyfree ISC License.
# Functions
LevelFromString returns a level based on the input string s.
NewBackend creates a logger backend from a Writer.
WithFlags configures a Backend to use the specified flags rather than using the package's defaults as determined through the LOGFLAGS environment variable.
# Constants
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Llongfile modifies the logger output to include full path and line number of the logging callsite, e.g.
Lshortfile modifies the logger output to include filename and line number of the logging callsite, e.g.
# Variables
Disabled is a Logger that will never output anything.
# Interfaces
Logger is an interface which describes a level-based logger.
# Type aliases
BackendOption is a function used to modify the behavior of a Backend.
Level is the level at which a logger is configured.