Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Close()
- func (l *Logger) Filter() gol.LogFilter
- func (l *Logger) Formatter() gol.LogFormatter
- func (l *Logger) Run(c chan *gol.LogMessage)
- func (l *Logger) Send(m *gol.LogMessage) (err error)
- func (l *Logger) SetFilter(f gol.LogFilter) error
- func (l *Logger) SetFormatter(f gol.LogFormatter) error
- func (l *Logger) SetWriter(w io.Writer) error
- func (l *Logger) Status() bool
- func (l *Logger) Writer() io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger generic struct for a logger.
func (*Logger) Close ¶
func (l *Logger) Close()
Close closes the log message channel and waits for all processing to complete.
func (*Logger) Formatter ¶
func (l *Logger) Formatter() gol.LogFormatter
Formatter returns the logger formatter.
func (*Logger) Run ¶
func (l *Logger) Run(c chan *gol.LogMessage)
Run runs a go routine to process messages from the logger channel.
func (*Logger) Send ¶
func (l *Logger) Send(m *gol.LogMessage) (err error)
Send process log message.
func (*Logger) SetFormatter ¶
func (l *Logger) SetFormatter(f gol.LogFormatter) error
SetFormatter sets the logger formatter.
Click to show internal directories.
Click to hide internal directories.