Documentation ¶
Index ¶
- Constants
- Variables
- func Finalize()
- func Initialize(ctx context.Context, logCfg *config.LoggingConfig, usr *user.User) errs.Error
- func LogError(args ...interface{})
- func LoggerError(l *logrus.Logger, args ...interface{})
- func LoggerErrorFields(err errs.Error) logrus.Fields
- func Msg(args ...interface{}) *logrus.Entry
- type ContextFormatter
Constants ¶
View Source
const ( DefaultLevel = logrus.InfoLevel DefaultFormat = "text" DefaultTimeFormat = "2006/01/02 15:04:05.00000" //time.RFC1123 )
Variables ¶
View Source
var Severity2LogLevel = map[errs.Severity]logrus.Level{ errs.SeverityWarning: logrus.WarnLevel, errs.SeverityError: logrus.ErrorLevel, errs.SeverityCritical: logrus.FatalLevel, }
Functions ¶
func Initialize ¶
func LoggerError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.