Documentation
¶
Index ¶
- func WithExtend(extend string) func(logger *Logger)
- func WithLogWriter(writer io.Writer) func(logger *Logger)
- func WithName(name string) func(logger *Logger)
- func WithNameSpacing(spacing int) func(logger *Logger)
- func WithSeverity(level Level) func(logger *Logger)
- func WithSeveritySpacing(spacing int) func(logger *Logger)
- type Level
- type Logger
- func (l *Logger) Debug(format string, params ...any)
- func (l *Logger) Error(err error, format string, params ...any)
- func (l *Logger) Fatal(err error, format string, params ...any)
- func (l *Logger) IdDebug() bool
- func (l *Logger) IdTrace() bool
- func (l *Logger) Info(format string, params ...any)
- func (l *Logger) InfoStruct(format OutputFormat, obj any)
- func (l *Logger) Panic(err error, format string, params ...any)
- func (l *Logger) Trace(format string, params ...any)
- func (l *Logger) Warning(format string, params ...any)
- type OutputFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithExtend ¶
func WithLogWriter ¶
func WithNameSpacing ¶
func WithSeverity ¶
func WithSeveritySpacing ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) InfoStruct ¶
func (l *Logger) InfoStruct(format OutputFormat, obj any)
Click to show internal directories.
Click to hide internal directories.