Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultLoggerFactory ¶
type DefaultLoggerFactory struct {
}
func (*DefaultLoggerFactory) CreateLogger ¶
func (inst *DefaultLoggerFactory) CreateLogger() Logger
type Logger ¶
type Logger interface {
Fatal(a ...interface{})
Error(a ...interface{})
Warn(a ...interface{})
Info(a ...interface{})
Debug(a ...interface{})
Trace(a ...interface{})
IsFatalEnabled() bool
IsErrorEnabled() bool
IsWarnEnabled() bool
IsInfoEnabled() bool
IsDebugEnabled() bool
IsTraceEnabled() bool
}
Logger 是一个统一的抽象日志接口
type LoggerFactory ¶
type LoggerFactory interface {
CreateLogger() Logger
}
LoggerFactory 是Logger的工厂
Click to show internal directories.
Click to hide internal directories.