Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StdoutHandler = NewSyncWriterHandler(os.Stdout) StderrHandler = NewSyncWriterHandler(os.Stderr) )
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Fatal(format string, args ...interface{})
Error(format string, args ...interface{})
Warning(format string, args ...interface{})
Info(format string, args ...interface{})
Debug(format string, args ...interface{})
IsError() bool
IsWarning() bool
IsInfo() bool
IsDebug() bool
SetLevel(level Level)
SetHandler(logging.Handler)
}
func NewWithSync ¶
type SyncWriterHandler ¶
type SyncWriterHandler struct {
*logging.BaseHandler
Colorize bool
sync.Mutex
// contains filtered or unexported fields
}
func NewSyncWriterHandler ¶
func NewSyncWriterHandler(w io.Writer) *SyncWriterHandler
func (*SyncWriterHandler) Close ¶
func (b *SyncWriterHandler) Close()
func (*SyncWriterHandler) Handle ¶
func (b *SyncWriterHandler) Handle(rec *logging.Record)
Click to show internal directories.
Click to hide internal directories.