package
0.3.2
Repository: https://github.com/raystack/salt.git
Documentation: pkg.go.dev

# Functions

LogrusWithFormatter can be used to change default formatting by implementing logrus.Formatter For example: type PlainFormatter struct{} func (p *PlainFormatter) Format(entry *logrus.Entry) ([]byte, error) { return []byte(entry.Message), nil } l := log.NewLogrus(log.LogrusWithFormatter(&PlainFormatter{})).
No description provided by the author
No description provided by the author
NewLogrus returns a logrus logger instance with info level as default log level.
NewNoop returns a no operation logger, useful in tests.
NewZap returns a zap logger instance with info level as default log level.
ZapContextWithFields will add Zap Fields to logger in Context.
ZapFromContext will help in fetching back zap logger from context.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Logger is a convenient interface to use provided loggers either use it as it is or implement your own interface where the logging implementations are used Each log method must take first string as message and then one or more key,value arguments.

# Type aliases

Option modifies the logger behavior.