Documentation
¶
Index ¶
- Variables
- type Level
- type Logger
- func (own *Logger) Close() (err error)
- func (own *Logger) Debug(msgs ...string)
- func (own *Logger) Debugf(fmt string, args ...any)
- func (own *Logger) Error(msgs ...string)
- func (own *Logger) Errorf(fmt string, args ...any)
- func (own *Logger) Fatal(msgs ...string)
- func (own *Logger) Fatalf(fmt string, args ...any)
- func (own *Logger) Info(msgs ...string)
- func (own *Logger) Infof(fmt string, args ...any)
- func (own *Logger) SetLogFile(level Level, filename string) error
- func (own *Logger) Warn(msgs ...string)
- func (own *Logger) Warnf(fmt string, args ...any)
- func (own *Logger) WithFullFilename() *Logger
- func (own *Logger) WithLevel(level Level) *Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Debug = defaultLogger.Debug Debugf = defaultLogger.Debugf Info = defaultLogger.Info Infof = defaultLogger.Infof Warn = defaultLogger.Warn Warnf = defaultLogger.Warnf Error = defaultLogger.Error Errorf = defaultLogger.Errorf Fatal = defaultLogger.Fatal Fatalf = defaultLogger.Fatalf )
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func WithFullFilename ¶
func WithFullFilename() *Logger
func (*Logger) WithFullFilename ¶
Click to show internal directories.
Click to hide internal directories.