Documentation
¶
Index ¶
- func SetLogLevel(level LogLevel)
- func SetLogOutput(w io.Writer)
- type ILogger
- type LogLevel
- type LogWriter
- type Logger
- func (l *Logger) Debug(msg string)
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Error(msg string)
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(msg string)
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) LogOnce(msg string)
- func (l *Logger) LogOncef(format string, args ...interface{})
- func (l *Logger) StructuredDebug(msg string, data map[string]any)
- func (l *Logger) StructuredError(msg string, data map[string]any)
- func (l *Logger) StructuredInfo(msg string, data map[string]any)
- func (l *Logger) StructuredLog(level LogLevel, msg string, data map[string]any)
- func (l *Logger) Trace(msg string)
- func (l *Logger) Tracef(format string, args ...interface{})
- func (l *Logger) Warn(msg string)
- func (l *Logger) Warnf(format string, args ...interface{})
- type StructuredLogEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
func SetLogLevel(level LogLevel)
func SetLogOutput ¶
Types ¶
type ILogger ¶
type ILogger interface {
Trace(msg string)
Debug(msg string)
Info(msg string)
Warn(msg string)
Error(msg string)
Fatal(msg string)
Tracef(format string, args ...interface{})
Debugf(format string, args ...interface{})
Infof(format string, args ...interface{})
Warnf(format string, args ...interface{})
Errorf(format string, args ...interface{})
Fatalf(format string, args ...interface{})
}
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
LogWriter wraps an io.Writer to maintain type consistency with atomic.Value
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger handles all logging operations
func DefaultLogger ¶
func DefaultLogger() *Logger
func (*Logger) StructuredInfo ¶
StructuredInfo is a Convenience methods for structured logging
func (*Logger) StructuredLog ¶
Click to show internal directories.
Click to hide internal directories.