otlog

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTLogger

type OTLogger struct {
	// contains filtered or unexported fields
}

func (*OTLogger) Debug

func (l *OTLogger) Debug(args ...any)

func (*OTLogger) Debug2

func (l *OTLogger) Debug2(args ...any)

func (*OTLogger) Debug3

func (l *OTLogger) Debug3(args ...any)

func (*OTLogger) Debug4

func (l *OTLogger) Debug4(args ...any)

func (*OTLogger) Debugf

func (l *OTLogger) Debugf(format string, args ...any)

func (*OTLogger) Debugf2

func (l *OTLogger) Debugf2(format string, args ...any)

func (*OTLogger) Debugf3

func (l *OTLogger) Debugf3(format string, args ...any)

func (*OTLogger) Debugf4

func (l *OTLogger) Debugf4(format string, args ...any)

func (*OTLogger) Error

func (l *OTLogger) Error(args ...any)

func (*OTLogger) Error2

func (l *OTLogger) Error2(args ...any)

func (*OTLogger) Error3

func (l *OTLogger) Error3(args ...any)

func (*OTLogger) Error4

func (l *OTLogger) Error4(args ...any)

func (*OTLogger) Errorf

func (l *OTLogger) Errorf(format string, args ...any)

func (*OTLogger) Errorf2

func (l *OTLogger) Errorf2(format string, args ...any)

func (*OTLogger) Errorf3

func (l *OTLogger) Errorf3(format string, args ...any)

func (*OTLogger) Errorf4

func (l *OTLogger) Errorf4(format string, args ...any)

func (*OTLogger) Fatal

func (l *OTLogger) Fatal(args ...any)

func (*OTLogger) Fatal2

func (l *OTLogger) Fatal2(args ...any)

func (*OTLogger) Fatal3

func (l *OTLogger) Fatal3(args ...any)

func (*OTLogger) Fatal4

func (l *OTLogger) Fatal4(args ...any)

func (*OTLogger) Fatalf

func (l *OTLogger) Fatalf(format string, args ...any)

func (*OTLogger) Fatalf2

func (l *OTLogger) Fatalf2(format string, args ...any)

func (*OTLogger) Fatalf3

func (l *OTLogger) Fatalf3(format string, args ...any)

func (*OTLogger) Fatalf4

func (l *OTLogger) Fatalf4(format string, args ...any)

func (*OTLogger) Info

func (l *OTLogger) Info(args ...any)

func (*OTLogger) Info2

func (l *OTLogger) Info2(args ...any)

func (*OTLogger) Info3

func (l *OTLogger) Info3(args ...any)

func (*OTLogger) Info4

func (l *OTLogger) Info4(args ...any)

func (*OTLogger) Infof

func (l *OTLogger) Infof(format string, args ...any)

func (*OTLogger) Infof2

func (l *OTLogger) Infof2(format string, args ...any)

func (*OTLogger) Infof3

func (l *OTLogger) Infof3(format string, args ...any)

func (*OTLogger) Infof4

func (l *OTLogger) Infof4(format string, args ...any)

func (*OTLogger) Trace

func (l *OTLogger) Trace(args ...any)

func (*OTLogger) Trace2

func (l *OTLogger) Trace2(args ...any)

func (*OTLogger) Trace3

func (l *OTLogger) Trace3(args ...any)

func (*OTLogger) Trace4

func (l *OTLogger) Trace4(args ...any)

func (*OTLogger) Tracef

func (l *OTLogger) Tracef(format string, args ...any)

func (*OTLogger) Tracef2

func (l *OTLogger) Tracef2(format string, args ...any)

func (*OTLogger) Tracef3

func (l *OTLogger) Tracef3(format string, args ...any)

func (*OTLogger) Tracef4

func (l *OTLogger) Tracef4(format string, args ...any)

func (*OTLogger) Warn

func (l *OTLogger) Warn(args ...any)

func (*OTLogger) Warn2

func (l *OTLogger) Warn2(args ...any)

func (*OTLogger) Warn3

func (l *OTLogger) Warn3(args ...any)

func (*OTLogger) Warn4

func (l *OTLogger) Warn4(args ...any)

func (*OTLogger) Warnf

func (l *OTLogger) Warnf(format string, args ...any)

func (*OTLogger) Warnf2

func (l *OTLogger) Warnf2(format string, args ...any)

func (*OTLogger) Warnf3

func (l *OTLogger) Warnf3(format string, args ...any)

func (*OTLogger) Warnf4

func (l *OTLogger) Warnf4(format string, args ...any)

type Severity

type Severity slog.Level

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 SeverityValue(str string) (Severity, error)

func (Severity) IsDebugSeverity

func (s Severity) IsDebugSeverity() bool

func (Severity) IsErrorSeverity

func (s Severity) IsErrorSeverity() bool

func (Severity) IsFatalSeverity

func (s Severity) IsFatalSeverity() bool

func (Severity) IsInfoSeverity

func (s Severity) IsInfoSeverity() bool

func (Severity) IsTraceSeverity

func (s Severity) IsTraceSeverity() bool

func (Severity) IsWarnSeverity

func (s Severity) IsWarnSeverity() bool

func (Severity) ShouldNotIgnore

func (s Severity) ShouldNotIgnore() bool

Any Severity of 17 or above indicates an erroneous situation and should be handled

func (Severity) String

func (s Severity) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL