Documentation ¶
Index ¶
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func IsEnableDebug() bool
- func IsEnableInfo() bool
- func IsEnableWarn() bool
- func SetLogger(l Logger)
- func Warn(format string, v ...interface{})
- type DefaultLogger
- func (l *DefaultLogger) Debug(format string, v ...interface{})
- func (l *DefaultLogger) Error(format string, v ...interface{})
- func (l *DefaultLogger) Info(format string, v ...interface{})
- func (l *DefaultLogger) IsEnableDebug() bool
- func (l *DefaultLogger) IsEnableInfo() bool
- func (l *DefaultLogger) IsEnableWarn() bool
- func (l *DefaultLogger) Warn(format string, v ...interface{})
- type FileLogger
- func (fl *FileLogger) Debug(format string, v ...interface{})
- func (fl *FileLogger) Error(format string, v ...interface{})
- func (fl *FileLogger) Info(format string, v ...interface{})
- func (fl *FileLogger) IsEnableDebug() bool
- func (fl *FileLogger) IsEnableInfo() bool
- func (fl *FileLogger) IsEnableWarn() bool
- func (fl *FileLogger) Warn(format string, v ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEnableDebug ¶
func IsEnableDebug() bool
func IsEnableInfo ¶
func IsEnableInfo() bool
func IsEnableWarn ¶
func IsEnableWarn() bool
Types ¶
type DefaultLogger ¶
DefaultLogger is a default implementation of the Logger interface.
func NewDefaultLogger ¶
func NewDefaultLogger(level int) *DefaultLogger
func (*DefaultLogger) Debug ¶
func (l *DefaultLogger) Debug(format string, v ...interface{})
func (*DefaultLogger) Error ¶
func (l *DefaultLogger) Error(format string, v ...interface{})
func (*DefaultLogger) Info ¶
func (l *DefaultLogger) Info(format string, v ...interface{})
func (*DefaultLogger) IsEnableDebug ¶
func (l *DefaultLogger) IsEnableDebug() bool
func (*DefaultLogger) IsEnableInfo ¶
func (l *DefaultLogger) IsEnableInfo() bool
func (*DefaultLogger) IsEnableWarn ¶
func (l *DefaultLogger) IsEnableWarn() bool
func (*DefaultLogger) Warn ¶
func (l *DefaultLogger) Warn(format string, v ...interface{})
type FileLogger ¶
func NewFileLogger ¶
func NewFileLogger(logger *log.Log, level int) *FileLogger
func (*FileLogger) Debug ¶
func (fl *FileLogger) Debug(format string, v ...interface{})
func (*FileLogger) Error ¶
func (fl *FileLogger) Error(format string, v ...interface{})
func (*FileLogger) Info ¶
func (fl *FileLogger) Info(format string, v ...interface{})
func (*FileLogger) IsEnableDebug ¶
func (fl *FileLogger) IsEnableDebug() bool
func (*FileLogger) IsEnableInfo ¶
func (fl *FileLogger) IsEnableInfo() bool
func (*FileLogger) IsEnableWarn ¶
func (fl *FileLogger) IsEnableWarn() bool
func (*FileLogger) Warn ¶
func (fl *FileLogger) Warn(format string, v ...interface{})
Click to show internal directories.
Click to hide internal directories.