Documentation
¶
Index ¶
- type FileLogRotator
- type RotateFileLogger
- type RotateFileLoggerImpl
- func (l *RotateFileLoggerImpl) Close() error
- func (l *RotateFileLoggerImpl) Flush()
- func (l *RotateFileLoggerImpl) SDebug(s int, v ...any)
- func (l *RotateFileLoggerImpl) SDebugf(s int, f string, a ...any)
- func (l *RotateFileLoggerImpl) SError(s int, v ...any)
- func (l *RotateFileLoggerImpl) SErrorf(s int, f string, a ...any)
- func (l *RotateFileLoggerImpl) SFatal(s int, v ...any)
- func (l *RotateFileLoggerImpl) SFatalf(s int, f string, a ...any)
- func (l *RotateFileLoggerImpl) SInfo(s int, v ...any)
- func (l *RotateFileLoggerImpl) SInfof(s int, f string, a ...any)
- func (l *RotateFileLoggerImpl) STrace(s int, v ...any)
- func (l *RotateFileLoggerImpl) STracef(s int, f string, a ...any)
- func (l *RotateFileLoggerImpl) SWarn(s int, v ...any)
- func (l *RotateFileLoggerImpl) SWarnf(s int, f string, a ...any)
- func (l *RotateFileLoggerImpl) Write(p []byte) (int, error)
- type TimeBaseFileLogRotatorImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLogRotator ¶
type FileLogRotator interface { Rotate() error io.WriteCloser }
type RotateFileLogger ¶
type RotateFileLogger interface { logger.SkipLogger io.Closer io.Writer Rotate() error RotateWithWriteCloser(wc io.WriteCloser) error }
type RotateFileLoggerImpl ¶
type RotateFileLoggerImpl struct { logger.AbstractSkipLoggerImpl // ALL > TRACE > DEBUG > INFO > WARN > ERROR > FATAL > OFF // default YYYY-MM-DD HH:mm:ss.sss | ${prefix} | ${File} | ${level} : File FileLogRotator Prefix string Level logger.LEVEL }
func NewRotateFileLoggerImpl ¶
func NewRotateFileLoggerImpl(file FileLogRotator, lvl logger.LEVEL) *RotateFileLoggerImpl
func NewRotateFileLoggerImpl1 ¶
func NewRotateFileLoggerImpl1(file FileLogRotator) *RotateFileLoggerImpl
func NewRotateFileLoggerImpl2 ¶
func NewRotateFileLoggerImpl2() *RotateFileLoggerImpl
func (*RotateFileLoggerImpl) Close ¶
func (l *RotateFileLoggerImpl) Close() error
func (*RotateFileLoggerImpl) Flush ¶
func (l *RotateFileLoggerImpl) Flush()
func (*RotateFileLoggerImpl) SDebug ¶
func (l *RotateFileLoggerImpl) SDebug(s int, v ...any)
func (*RotateFileLoggerImpl) SDebugf ¶
func (l *RotateFileLoggerImpl) SDebugf(s int, f string, a ...any)
func (*RotateFileLoggerImpl) SError ¶
func (l *RotateFileLoggerImpl) SError(s int, v ...any)
func (*RotateFileLoggerImpl) SErrorf ¶
func (l *RotateFileLoggerImpl) SErrorf(s int, f string, a ...any)
func (*RotateFileLoggerImpl) SFatal ¶
func (l *RotateFileLoggerImpl) SFatal(s int, v ...any)
func (*RotateFileLoggerImpl) SFatalf ¶
func (l *RotateFileLoggerImpl) SFatalf(s int, f string, a ...any)
func (*RotateFileLoggerImpl) SInfo ¶
func (l *RotateFileLoggerImpl) SInfo(s int, v ...any)
func (*RotateFileLoggerImpl) SInfof ¶
func (l *RotateFileLoggerImpl) SInfof(s int, f string, a ...any)
func (*RotateFileLoggerImpl) STrace ¶
func (l *RotateFileLoggerImpl) STrace(s int, v ...any)
func (*RotateFileLoggerImpl) STracef ¶
func (l *RotateFileLoggerImpl) STracef(s int, f string, a ...any)
func (*RotateFileLoggerImpl) SWarn ¶
func (l *RotateFileLoggerImpl) SWarn(s int, v ...any)
type TimeBaseFileLogRotatorImpl ¶
type TimeBaseFileLogRotatorImpl struct { File *lumberjack.Logger Scheduler *cron.Cron }
func NewTimeBaseFileLogRotatorImpl ¶
func NewTimeBaseFileLogRotatorImpl(fileName string) (res *TimeBaseFileLogRotatorImpl)
func (*TimeBaseFileLogRotatorImpl) Close ¶
func (f *TimeBaseFileLogRotatorImpl) Close() error
func (*TimeBaseFileLogRotatorImpl) Rotate ¶
func (f *TimeBaseFileLogRotatorImpl) Rotate() error
Click to show internal directories.
Click to hide internal directories.