Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEBUG = iota INFO WARN ERROR )
Variables ¶
View Source
var (
ErrNotFound = fmt.Errorf("not found")
)
Functions ¶
func RegisterLogger ¶
func RegisterLogger()
Types ¶
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(prefix string, level int) *DefaultLogger
func (*DefaultLogger) Debugf ¶
func (l *DefaultLogger) Debugf(format string, v ...interface{})
func (*DefaultLogger) Errorf ¶
func (l *DefaultLogger) Errorf(format string, v ...interface{})
func (*DefaultLogger) Infof ¶
func (l *DefaultLogger) Infof(format string, v ...interface{})
func (*DefaultLogger) Warnf ¶
func (l *DefaultLogger) Warnf(format string, v ...interface{})
type Logger ¶
type LoggerS ¶
type LoggerS struct {
// contains filtered or unexported fields
}
func GetLoggerS ¶
func NewLoggerS ¶
Click to show internal directories.
Click to hide internal directories.