Documentation
¶
Index ¶
- func Debug(msg string, args ...any)
- func Debugf(message string, args ...any)
- func Error(msg string, err error, args ...any)
- func Errorf(message string, args ...any)
- func Fatal(msg string, err error, args ...any)
- func Fatalf(message string, args ...any)
- func Info(msg string, args ...any)
- func Infof(message string, args ...any)
- func LogDefferedMessage()
- func NewLogger(logfile string, opts *Options) error
- func SaveDebugf(message string, args ...any)
- func Warn(msg string, args ...any)
- func Warnf(message string, args ...any)
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogDefferedMessage ¶
func LogDefferedMessage()
func NewLogger ¶
NewLogger функция, которая создает и сохраняет новый экземпляр логгера. Первым параметром передается путь к лог файлу, а вторым - параметры для его настройки. Можно оставить nil, тогда параметры будут иметь дефолтные значения.
func SaveDebugf ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.