Documentation
¶
Overview ¶
Package seelog provides the configuration for the logger
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config abstracts the logger configuration
func NewSeelogConfig ¶
func NewSeelogConfig(name, level, format string, syslogRFC bool, jsonFormatter, commonFormatter func(ctx context.Context, r stdslog.Record) string) *Config
NewSeelogConfig returns a Config filled with correct parameters
func (*Config) ConfigureSyslog ¶
ConfigureSyslog enables and configures syslog if the syslogURI it not an empty string
func (*Config) EnableConsoleLog ¶
EnableConsoleLog sets enable or disable console logging depending on the parameter value
func (*Config) EnableFileLogging ¶
EnableFileLogging enables and configures file logging if the filename is not empty
func (*Config) SetLogLevel ¶
SetLogLevel configures the loglevel
func (*Config) SlogLogger ¶ added in v0.74.0
SlogLogger returns a slog logger and a level variable that can be used to change the log level dynamically
Click to show internal directories.
Click to hide internal directories.