Documentation
¶
Overview ¶
Package file implements the output of logs to a file.
Configuration file supports either writing to a file or a directory with random names. delimiter is required. This is the string to write between log entries. Normally a new line "\n"
output: type: file filename: "/var/tmp/rally.ndjson" delimiter: "/n"
or
output: type: file directory: "/var/tmp" pattern: "rally_*" delimiter: "\r\n"
directory and pattern are used in os.CreateTemp call
Index ¶
Constants ¶
View Source
const Name = "file"
OutputName is the name of the output in the configuration file and registry
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output stores pointer to an io.WriteCloser. This is where the log entries will be written. It also stores the delimiter that will be added between log entries.
func (*Output) NewInterval ¶
Click to show internal directories.
Click to hide internal directories.