Documentation
¶
Overview ¶
Implements a console logger for stdout/stderr.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleLogger ¶
type ConsoleLogger struct {
// contains filtered or unexported fields
}
Console logger (type exported for deprecated stdout module but fields are private).
func NewStderrLogger ¶
func NewStderrLogger(removeNewlines bool) *ConsoleLogger
Creates a logger for stderr.
removeNewlines: true to replace newlines
return: instace of console logger
func NewStdoutLogger ¶
func NewStdoutLogger(removeNewlines bool) *ConsoleLogger
Creates a logger for stdout.
removeNewlines: true to replace newlines
return: instace of console logger
func (*ConsoleLogger) LaunchModule ¶
func (conf *ConsoleLogger) LaunchModule(dataChan <-chan (*common.RlogMsg), flushChan chan (chan (bool)))
Intended to run in a separate goroutine. It prints log messages to console.
dataChan: receives log messages.
flushChan: receives flush command.
Click to show internal directories.
Click to hide internal directories.