Documentation
¶
Index ¶
Constants ¶
View Source
const ( // KeyAppName represents the key for the application name. KeyAppName = `app` // KeyError represents the key for the error. KeyError = `err` // KeyStack represents the key for the stack. KeyStack = `stack` // KeyDal represents the key for the data access layer. KeyDal = `dal` // KeySupplier represents the key for the supplier. KeySupplier = `supplier` // KeyHash represents the key for the hash. KeyHash = `hash` )
Variables ¶
This section is empty.
Functions ¶
func CommonLogger ¶
CommonLogger constructs a logging with default options.
func CommonLoggerWithOptions ¶
func CommonLoggerWithOptions(cfg *Config, w io.Writer, minLevel slog.Level, logToJson bool) (*slog.Logger, error)
CommonLoggerWithOptions constructs a logging with custom options.
func GeneralLogger ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.