package
0.0.0-20230620015642-8705ae581d71
Repository: https://github.com/rohitramu/kpm.git
Documentation: pkg.go.dev
# Functions
Debug logs the formatted message as a debug message.
Error logs the formatted message as an error.
Fatal logs the formatted message as an error, and then exits.
GetLevel returns the currently selected log level.
Info logs the formatted message as an informational message.
Output logs the formatted message as output, without any prefixes or logging flags turned on.
OutputStream writes all bytes from the given reader as output.
Panic logs the formatted message as an error, and then panics.
Parse converts a string representation of a log level to a Level object.
SetLevel sets the log level to the provided value.
Verbose logs the formatted message as a verbose message.
Warning logs the formatted message as a warning.
# Constants
DefaultLevel is the default log level.
LevelDebug indicates that debug, verbose, info, warning and error logs should be sent to output.
LevelError indicates that error logs should be sent to output.
LevelInfo indicates that info, warning and error logs should be sent to output.
LevelNone indicates that logs should not be sent to output.
LevelVerbose indicates that verbose, info, warning and error logs should be sent to output.
LevelWarning indicates that warning and error logs should be sent to output.
MaxLevel is the highest value allowed for a log level.
MinLevel is the lowest value allowed for a log level.
# Variables
WriterErr is the stream to use when writing error or warning logs.
WriterInfo is the stream to use when writing info or error logs.
WriterOut is the stream to use when writing program output.
# Type aliases
Level identifies the severity of a log line.