Documentation ¶
Index ¶
- type OTLogger
- func (l *OTLogger) Debug(args ...any)
- func (l *OTLogger) Debug2(args ...any)
- func (l *OTLogger) Debug3(args ...any)
- func (l *OTLogger) Debug4(args ...any)
- func (l *OTLogger) Debugf(format string, args ...any)
- func (l *OTLogger) Debugf2(format string, args ...any)
- func (l *OTLogger) Debugf3(format string, args ...any)
- func (l *OTLogger) Debugf4(format string, args ...any)
- func (l *OTLogger) Error(args ...any)
- func (l *OTLogger) Error2(args ...any)
- func (l *OTLogger) Error3(args ...any)
- func (l *OTLogger) Error4(args ...any)
- func (l *OTLogger) Errorf(format string, args ...any)
- func (l *OTLogger) Errorf2(format string, args ...any)
- func (l *OTLogger) Errorf3(format string, args ...any)
- func (l *OTLogger) Errorf4(format string, args ...any)
- func (l *OTLogger) Fatal(args ...any)
- func (l *OTLogger) Fatal2(args ...any)
- func (l *OTLogger) Fatal3(args ...any)
- func (l *OTLogger) Fatal4(args ...any)
- func (l *OTLogger) Fatalf(format string, args ...any)
- func (l *OTLogger) Fatalf2(format string, args ...any)
- func (l *OTLogger) Fatalf3(format string, args ...any)
- func (l *OTLogger) Fatalf4(format string, args ...any)
- func (l *OTLogger) Info(args ...any)
- func (l *OTLogger) Info2(args ...any)
- func (l *OTLogger) Info3(args ...any)
- func (l *OTLogger) Info4(args ...any)
- func (l *OTLogger) Infof(format string, args ...any)
- func (l *OTLogger) Infof2(format string, args ...any)
- func (l *OTLogger) Infof3(format string, args ...any)
- func (l *OTLogger) Infof4(format string, args ...any)
- func (l *OTLogger) Trace(args ...any)
- func (l *OTLogger) Trace2(args ...any)
- func (l *OTLogger) Trace3(args ...any)
- func (l *OTLogger) Trace4(args ...any)
- func (l *OTLogger) Tracef(format string, args ...any)
- func (l *OTLogger) Tracef2(format string, args ...any)
- func (l *OTLogger) Tracef3(format string, args ...any)
- func (l *OTLogger) Tracef4(format string, args ...any)
- func (l *OTLogger) Warn(args ...any)
- func (l *OTLogger) Warn2(args ...any)
- func (l *OTLogger) Warn3(args ...any)
- func (l *OTLogger) Warn4(args ...any)
- func (l *OTLogger) Warnf(format string, args ...any)
- func (l *OTLogger) Warnf2(format string, args ...any)
- func (l *OTLogger) Warnf3(format string, args ...any)
- func (l *OTLogger) Warnf4(format string, args ...any)
- type Severity
- func (s Severity) IsDebugSeverity() bool
- func (s Severity) IsErrorSeverity() bool
- func (s Severity) IsFatalSeverity() bool
- func (s Severity) IsInfoSeverity() bool
- func (s Severity) IsTraceSeverity() bool
- func (s Severity) IsWarnSeverity() bool
- func (s Severity) ShouldNotIgnore() bool
- func (s Severity) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Severity ¶
N.B. slog uses the term 'Level' to describe the importance of a log message, whilst OpenTelemetry uses the term 'Severity'
const ( TraceSeverity Severity = 1 Trace2Severity Severity = 2 Trace3Severity Severity = 3 Trace4Severity Severity = 4 DebugSeverity Severity = 5 Debug2Severity Severity = 6 Debug3Severity Severity = 7 Debug4Severity Severity = 8 InfoSeverity Severity = 9 Info2Severity Severity = 10 Info3Severity Severity = 11 Info4Severity Severity = 12 WarnSeverity Severity = 13 Warn2Severity Severity = 14 Warn3Severity Severity = 15 Warn4Severity Severity = 16 ErrorSeverity Severity = 17 Error2Severity Severity = 18 Error3Severity Severity = 19 Error4Severity Severity = 20 FatalSeverity Severity = 21 Fatal2Severity Severity = 22 Fatal3Severity Severity = 23 Fatal4Severity Severity = 24 )
func SeverityValue ¶
func (Severity) IsDebugSeverity ¶
func (Severity) IsErrorSeverity ¶
func (Severity) IsFatalSeverity ¶
func (Severity) IsInfoSeverity ¶
func (Severity) IsTraceSeverity ¶
func (Severity) IsWarnSeverity ¶
func (Severity) ShouldNotIgnore ¶
Any Severity of 17 or above indicates an erroneous situation and should be handled
Click to show internal directories.
Click to hide internal directories.