Documentation ¶
Index ¶
Constants ¶
View Source
const Backend = "file"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { // LogRotation settings (optional). LogRotation *LogRotationConf `yaml:"logRotation"` // Path to the log file to use as output. The special values stdout and stderr can be used to write to stdout or stderr respectively. Path string `yaml:"path" conf:"required,example=/path/to/file.log"` // AdditionalPaths to mirror the log output. Has performance implications. Use with caution. AdditionalPaths []string `yaml:"additionalPaths" conf:",example=[stdout]"` }
Conf is optional configuration for file Audit.
func (*Conf) SetDefaults ¶
func (c *Conf) SetDefaults()
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) WriteAccessLogEntry ¶
func (*Log) WriteDecisionLogEntry ¶
type LogRotationConf ¶ added in v0.30.0
type LogRotationConf struct { // MaxFileSizeMB sets the maximum size of individual log files in megabytes. MaxFileSizeMB uint `yaml:"maxFileSizeMB" conf:",example=100"` // MaxFileAgeDays sets the maximum age in days of old log files before they are deleted. MaxFileAgeDays uint `yaml:"maxFileAgeDays" conf:",example=10"` // MaxFileCount sets the maximum number of files to retain. MaxFileCount uint `yaml:"maxFileCount" conf:",example=10"` }
Click to show internal directories.
Click to hide internal directories.