package
0.0.20
Repository: https://github.com/agflow/tools.git
Documentation: pkg.go.dev

# Functions

AddHook adds hook to the logger.
Debug logs in debug level.
Debugf logs in debug level with a format.
EmptyHooks empties the hooks of the logger.
Error logs in error level.
Errorf logs in error level with a format.
ErrorType logs the error if the argument is not nil.
Fatal logs in error level.
Fatalf logs in error level with a format.
IfErrorDiffNil logs Error if argument is not nil.
Info logs in info level.
Infof logs in info level with a format.
NewSlackHook returns a hook for slack.
Panic logs in error level with a posterior Panic().
Panicf logs in error level with a posterior Panic() with format.
Warn logs in warn level.
Warnf logs in warn level with a format.

# Constants

DebugLvl level.
ErrorLvl level.
FatalLvl level.
InfoLvl level.
PanicLvl level, highest level of severity.
WarnLvl level.

# Structs

Logger defines the logger to be used.
MetaInfo is the metadata of the log.

# Type aliases

Hook is an alias for the hook function.
Level type.