Documentation ¶
Overview ¶
Package logtarget implements a multiplexing logging target
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogTarget ¶
type LogTarget struct {
// contains filtered or unexported fields
}
LogTarget implements the io.Writer interface, allowing LogTarget to be registered with the regular Go log package. LogTarget multiplexes its incoming writes to multiple optional output writers, and one main output writer (the log file).
var Target LogTarget
func (*LogTarget) OpenFile ¶
OpenFile opens the main log file for writing. This method will open the file in append-only mode.
Click to show internal directories.
Click to hide internal directories.