package v1alpha1 type LogLevel string const ( Debug LogLevel = "debug" Info LogLevel = "info" Notice LogLevel = "notice" Warning LogLevel = "warning" Warn LogLevel = "warn" Error LogLevel = "error" Err LogLevel = "err" Critical LogLevel = "critical" Crit LogLevel = "crit" Alert LogLevel = "alert" Emergency LogLevel = "emergency" Emerg LogLevel = "emerg" None LogLevel = "none" ) // LogConfig from https://docs.couchdb.org/en/stable/config/logging.html type LogConfig struct { // Where to send logs: stderr, file, syslog, journald or your implementation Writer *string `json:"writer,omitempty" ini:"writer,omitempty"` // Specifies the location of file for logging output. Only used by the file writer: File *string `json:"file,omitempty" ini:"file,omitempty"` // Specifies the size of the file log write buffer in bytes, to enable delayed log writes // Only used by the file writer WriteBuffer *string `json:"writeBuffer,omitempty" ini:"write_buffer,omitempty"` // Specifies the wait in milliseconds before committing logs to disk, to enable delayed log writes. // Only used by the file writer: WriteDelay *string `json:"writeDelay,omitempty" ini:"write_delay,omitempty"` // Logging level defines how verbose and detailed logging will be Level *LogLevel `json:"level,omitempty" ini:"level,omitempty"` // Includes SASL information in logs IncludeSASL *bool `json:"includeSASL,omitempty" ini:"include_sasl,omitempty"` // Specifies the syslog host to send logs to. Only used by the syslog writer: SyslogHost *string `json:"syslogHost,omitempty" ini:"syslog_host,omitempty"` // Specifies the syslog port to connect to when sending logs. Only used by the syslog writer: SyslogPort *int `json:"syslogPort,omitempty" ini:"syslog_port,omitempty"` // Specifies application name to the syslog writer: SyslogAppid *string `json:"syslogAppid,omitempty" ini:"syslog_appid,omitempty"` // Specifies the syslog facility to use with the syslog writer: SyslogFacility *string `json:"syslogFacility,omitempty" ini:"syslog_facility,omitempty"` }