Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeFile ¶
MakeFile creates a file-based logger, writing output to the specified file. The Sender instance is not configured: Pass to Journaler.SetSender or call SetName before using.
func MakePlainFile ¶
MakePlainFile writes all output to a file, but does not prepend any log formatting to each message.
The underlying mechanism uses the standard library's logging facility.
func MakeStdError ¶
MakeStdError returns an unconfigured Sender implementation that writes all logging output to standard error.
func MakeStdOutput ¶
MakeStdOutput returns an unconfigured native standard-out logger.
func WrapWriter ¶
WrapWriter constructs a new unconfigured sender that directly wraps any writer implementation. These loggers prepend time and logger name information to the beginning of log lines.
As a special case, if the writer is a *WriterSender, then this method will unwrap and return the underlying sender from the writer.
Types ¶
This section is empty.