package
0.5.11
Repository: https://github.com/gol4ng/logger.git
Documentation: pkg.go.dev

# Functions

Caller will add 2 fields in the handled entry context eg: _file:/..../file_of_the_handle_caller.go _line:72.
Context will define and merge defaultContext with each Entry Context if a default context key is redefined when calling Log/Debug/Info/..
Error provide a middleware that will catch underlying handler errors and print it to stdout if passThrough is set to true, the error will be printed and then returned in order to be handled elsewhere (in the overlying handler for example).
Filter will exclude some Entry for the underlying handler with the given filter function eg: allows you to only treat the logs that have a specific level.
MaxLevelFilter will exclude logs that have a major level than a given level.
MinLevelFilter will exclude logs that have a minor level than a given level.
NewPanicError builds a specific error from panic data.
Placeholder will replace message placeholder with context field.
RangeLevelFilter will exclude logs that have a level that are not between two given levels.
Recover provide a middleware func that will handle panics that occur in the underlying handler.
Timestamp middleware will add the timestamp to the log context.

# Structs

PanicError is an error that contains panic data.