package
0.0.0-20231112095346-9008a76cf7cf
Repository: https://github.com/dhontecillas/hfw.git
Documentation: pkg.go.dev

# Functions

GetCaller retrieves the name of the first non-logs calling function.
NewCustomGraylogHook creates a hook to be added to an instance of logger.
NewLogrus creates a new Logrus logger.
NewLogrusBuilder returns a function to create Logrus loggers.
NewMultiLogger crates a new logger that will forward log messages to the list of wrapped loggers.
NewMultiLoggerBuilder returns a function to create MultiLogger loggers.
NewNopLogger is a function to construct a NopLogger logger.
NewNopLoggerBuilder returns a function to construct NopLogger.
NewSentryBuilder returns a function to create Sentry loggers.
NewSentryConf creates a basic SentryConf.

# Structs

CustomGraylogHook adds a new layer over gemnasium Graylog hook to handle specific cases when trigerred.
Logrus is the logger to work with logrus.
LogrusConf contains the values to configure a Logrus parser.
LogrusMsg is a message entry that can be built and is not sent until is explicitly told to be sent.
MultiLogger is a logger that can wrap several other loggers an send the logs those multiple other instances.
MultiLogMsg is a LogMsg that sends log mesages to multiple other loggers.
NopLogger is a logger that logs nothing.
NopLoggerMsg is a log message that will send nothing.
SentryConf contains the values to initialize a Sentry logger.
SentryLogger implements a logger that sends messages to Sentry.
SentryLoggerMsg implements a LogMessage that can be sent to Sentry.

# Interfaces

Logger defines the interface to log data.
LogMsg is a message entry that can be built and is not sent until is explicitly told to be sent.

# Type aliases

LoggerBuilderFn is the type required to instantiate a new Logger.