Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = log.New(os.Stdout, "[DEBUG] ", flags)
View Source
var Error = log.New(os.Stderr, "[ERROR] ", flags)
View Source
var Info = log.New(os.Stdout, "[INFO] ", flags)
View Source
var OriginalStdOut = os.Stdout
View Source
var Server = log.New(os.Stdout, "[SERVER] ", flags)
Functions ¶
func CreateServiceLogger ¶
func Initialize ¶
func Initialize(useFiles bool)
func MultiWriter ¶
MultiWriter creates a writer that duplicates its writes to all the provided writers, similar to the Unix tee(1) command.
Each write is written to each listed writer, one at a time. If a listed writer returns an error, that overall write operation stops and returns the error; it does not continue down the list.
Types ¶
type Rotator ¶
type Rotator struct { sync.RWMutex io.WriteCloser // contains filtered or unexported fields }
func (*Rotator) Rotate ¶
func (r *Rotator) Rotate(newBackend io.WriteCloser)
func (*Rotator) StartRotation ¶
Click to show internal directories.
Click to hide internal directories.