<<<<<<< HEAD ======= >>>>>>> update-docs libsir: sir_syslog_dest Struct Reference libsir: The Standard Incident Reporter Library
libsir 2.2.6
Standard Incident Reporter
Loading...
Searching...
No Matches
sir_syslog_dest Struct Reference

Configuration for the system logger destination. More...

Data Fields

sir_levels levels
 sir_level bitmask defining levels to register for.
sir_options opts
 sir_option bitmask defining the formatting of output.
struct { 
uint32_t mask
 State bitmask.
void * logger
 System logger handle/identifier.
_state
 Reserved for internal use; do not modify.
char identity [SIR_MAX_SYSLOG_ID]
 The identity string to pass to the system logger.
char category [SIR_MAX_SYSLOG_CAT]
 The category string to pass to the system logger.

Detailed Description

Configuration for the system logger destination.

See also
sir_stdio_dest

Field Documentation

◆ category

char sir_syslog_dest::category[SIR_MAX_SYSLOG_CAT]

The category string to pass to the system logger.

See also
sir_syslogcat

◆ identity

char sir_syslog_dest::identity[SIR_MAX_SYSLOG_ID]

The identity string to pass to the system logger.

See also
sir_syslogid

◆ opts

sir_options sir_syslog_dest::opts

sir_option bitmask defining the formatting of output.

Remarks
Unlike the stdio and log file destinations, not all options are supported. This is due to the fact that system logging facilities typically already include the information represented by sir_option on their own.

Furthermore, the supported options vary based on the system logging facility in use.

Note
If your system supports syslog, and libsir is compiled with the intent to use it (SIR_SYSLOG_ENABLED is defined), then at least SIRO_NOPID is supported.

The documentation for this struct was generated from the following file: