Documentation
¶
Index ¶
- Constants
- Variables
- func Finalize()
- func GetSeveritiesFilter4CurrentLogLevel() (result []errs.Severity)
- func Initialize(ctx context.Context, logFileName, level, format, traceFileName string, ...) errs.Error
- func LogError(args ...interface{})
- func LogMsg(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 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.