...

Source file src/edge-infra.dev/pkg/edge/datasync/apis/v1alpha1/logging.go

Documentation: edge-infra.dev/pkg/edge/datasync/apis/v1alpha1

     1  package v1alpha1
     2  
     3  type LogLevel string
     4  
     5  const (
     6  	Debug     LogLevel = "debug"
     7  	Info      LogLevel = "info"
     8  	Notice    LogLevel = "notice"
     9  	Warning   LogLevel = "warning"
    10  	Warn      LogLevel = "warn"
    11  	Error     LogLevel = "error"
    12  	Err       LogLevel = "err"
    13  	Critical  LogLevel = "critical"
    14  	Crit      LogLevel = "crit"
    15  	Alert     LogLevel = "alert"
    16  	Emergency LogLevel = "emergency"
    17  	Emerg     LogLevel = "emerg"
    18  	None      LogLevel = "none"
    19  )
    20  
    21  // LogConfig from https://docs.couchdb.org/en/stable/config/logging.html
    22  type LogConfig struct {
    23  	// Where to send logs: stderr, file, syslog, journald or your implementation
    24  	Writer *string `json:"writer,omitempty" ini:"writer,omitempty"`
    25  
    26  	// Specifies the location of file for logging output. Only used by the file writer:
    27  	File *string `json:"file,omitempty" ini:"file,omitempty"`
    28  
    29  	// Specifies the size of the file log write buffer in bytes, to enable delayed log writes
    30  	//  Only used by the file writer
    31  	WriteBuffer *string `json:"writeBuffer,omitempty" ini:"write_buffer,omitempty"`
    32  
    33  	// Specifies the wait in milliseconds before committing logs to disk, to enable delayed log writes.
    34  	// Only used by the file writer:
    35  	WriteDelay *string `json:"writeDelay,omitempty" ini:"write_delay,omitempty"`
    36  
    37  	// Logging level defines how verbose and detailed logging will be
    38  	Level *LogLevel `json:"level,omitempty" ini:"level,omitempty"`
    39  
    40  	// Includes SASL information in logs
    41  	IncludeSASL *bool `json:"includeSASL,omitempty" ini:"include_sasl,omitempty"`
    42  
    43  	// Specifies the syslog host to send logs to. Only used by the syslog writer:
    44  	SyslogHost *string `json:"syslogHost,omitempty" ini:"syslog_host,omitempty"`
    45  
    46  	// Specifies the syslog port to connect to when sending logs. Only used by the syslog writer:
    47  	SyslogPort *int `json:"syslogPort,omitempty" ini:"syslog_port,omitempty"`
    48  
    49  	// Specifies application name to the syslog writer:
    50  	SyslogAppid *string `json:"syslogAppid,omitempty" ini:"syslog_appid,omitempty"`
    51  
    52  	// Specifies the syslog facility to use with the syslog writer:
    53  	SyslogFacility *string `json:"syslogFacility,omitempty" ini:"syslog_facility,omitempty"`
    54  }
    55  

View as plain text