Documentation
¶
Index ¶
- func Debug(msg string, props ...map[string]any)
- func Err(err error, props ...map[string]any)
- func Fatal(err error, props ...map[string]any)
- func Info(msg string, props ...map[string]any)
- func Trace(err error, props ...map[string]any)
- func Write(msg []byte) (int, error)
- type Level
- type Logger
- func (l *Logger) Debug(msg string, props ...map[string]any)
- func (l *Logger) Err(err error, props ...map[string]any)
- func (l *Logger) Fatal(err error, props ...map[string]any)
- func (l *Logger) Info(msg string, props ...map[string]any)
- func (l *Logger) Trace(err error, props ...map[string]any)
- func (l *Logger) Write(msg []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger holds the output destination that the log entries will be written to, the minimum severity level that log entries will be written for, and a mutex for concurrent writes.
func Default ¶
func Default() *Logger
Default write to stdout with the minimum level set to LevelDebug.
Click to show internal directories.
Click to hide internal directories.