Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
MsgFormatter
Level LogLevel
Debug MsgFormatter
Info MsgFormatter
Warn MsgFormatter
Error MsgFormatter
Fatal MsgFormatter
// contains filtered or unexported fields
}
func NewBaseLogger ¶
func (*Logger) NewWithPrefix ¶
type MessageWriter ¶
type MessageWriter struct {
// contains filtered or unexported fields
}
func NewMessageWriter ¶
func NewMessageWriter(out io.Writer) *MessageWriter
func (*MessageWriter) WaitAndWrite ¶
func (mw *MessageWriter) WaitAndWrite(msgChan <-chan *Message) (err error)
func (*MessageWriter) WriteMessage ¶
func (mw *MessageWriter) WriteMessage(msg *Message) (err error)
Click to show internal directories.
Click to hide internal directories.