Documentation
¶
Overview ¶
internal/logging/logger.go
Index ¶
- type FieldLogger
- func (fl *FieldLogger) Debug(format string, args ...interface{})
- func (fl *FieldLogger) Error(format string, args ...interface{})
- func (fl *FieldLogger) Fatal(format string, args ...interface{})
- func (fl *FieldLogger) Info(format string, args ...interface{})
- func (fl *FieldLogger) Warning(format string, args ...interface{})
- type LogLevel
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Fatal(format string, args ...interface{})
- func (l *Logger) GetLogr() logr.Logger
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) SetJSONFormat(useJSON bool)
- func (l *Logger) SetOutput(writer io.Writer)
- func (l *Logger) Warning(format string, args ...interface{})
- func (l *Logger) WithFields(fields map[string]interface{}) *FieldLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldLogger ¶
type FieldLogger struct {
// contains filtered or unexported fields
}
FieldLogger is a logger that includes additional fields in logs
func (*FieldLogger) Debug ¶
func (fl *FieldLogger) Debug(format string, args ...interface{})
Debug logs a debug message with fields
func (*FieldLogger) Error ¶
func (fl *FieldLogger) Error(format string, args ...interface{})
Error logs an error message with fields
func (*FieldLogger) Fatal ¶
func (fl *FieldLogger) Fatal(format string, args ...interface{})
Fatal logs a fatal message with fields and exits the program
func (*FieldLogger) Info ¶
func (fl *FieldLogger) Info(format string, args ...interface{})
Info logs an informational message with fields
func (*FieldLogger) Warning ¶
func (fl *FieldLogger) Warning(format string, args ...interface{})
Warning logs a warning message with fields
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides structured logging functionality
func (*Logger) SetJSONFormat ¶
SetJSONFormat sets whether to use JSON format for logging
func (*Logger) WithFields ¶
func (l *Logger) WithFields(fields map[string]interface{}) *FieldLogger
WithFields creates a new logger with the specified fields
Click to show internal directories.
Click to hide internal directories.