Documentation ¶
Overview ¶
Package log provides logging for the browser module.
Index ¶
- type Logger
- func (l *Logger) DebugMode() bool
- func (l *Logger) Debugf(category string, msg string, args ...any)
- func (l *Logger) Errorf(category string, msg string, args ...any)
- func (l *Logger) Infof(category string, msg string, args ...any)
- func (l *Logger) Logf(level logrus.Level, category string, msg string, args ...any)
- func (l *Logger) ReportCaller()
- func (l *Logger) SetCategoryFilter(filter string) (err error)
- func (l *Logger) SetLevel(level string) error
- func (l *Logger) Tracef(category string, msg string, args ...any)
- func (l *Logger) Warnf(category string, msg string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
func NewNullLogger ¶
func NewNullLogger() *Logger
NewNullLogger will create a logger where log lines will be discarded and not logged anywhere.
func (*Logger) ReportCaller ¶
func (l *Logger) ReportCaller()
ReportCaller adds source file and function names to the log entries.
func (*Logger) SetCategoryFilter ¶ added in v0.6.0
SetCategoryFilter enables filtering logs by the filter regex.
func (*Logger) SetLevel ¶
SetLevel sets the logger level from a level string. Accepted values:
- "panic"
- "fatal"
- "error"
- "warn"
- "warning"
- "info"
- "debug"
- "trace"
Click to show internal directories.
Click to hide internal directories.