libsir 2.2.5
Standard Incident Reporter
Loading...
Searching...
No Matches
Defaults

Variables

static const sir_levels sir_stdout_def_lvls = SIRL_DEBUG | SIRL_INFO | SIRL_NOTICE | SIRL_WARN
 Default levels for stdout.
 
static const sir_options sir_stdout_def_opts = SIRO_NOTIME | SIRO_NOHOST | SIRO_NOPID | SIRO_NOTID
 Default options for stdout.
 
static const sir_levels sir_stderr_def_lvls = SIRL_ERROR | SIRL_CRIT | SIRL_ALERT | SIRL_EMERG
 Default levels for stderr.
 
static const sir_options sir_stderr_def_opts = SIRO_NOTIME | SIRO_NOHOST | SIRO_NOPID | SIRO_NOTID
 Default options for stderr.
 
static const sir_levels sir_syslog_def_lvls
 Default levels for the system logger.
 
static const sir_options sir_syslog_def_opts = SIRO_MSGONLY
 Default options for the system logger.
 
static const sir_levels sir_file_def_lvls = SIRL_ALL
 Default levels for log files.
 
static const sir_options sir_file_def_opts = SIRO_ALL | SIRO_NOHOST
 Default options for log files.
 
static const sir_textstyle sir_lvl_emerg_def_style
 Default sir_textstyle for SIRL_EMERG.
 
static const sir_textstyle sir_lvl_alert_def_style
 Default sir_textstyle for SIRL_ALERT.
 
static const sir_textstyle sir_lvl_crit_def_style
 Default sir_textstyle for SIRL_CRIT.
 
static const sir_textstyle sir_lvl_error_def_style
 Default sir_textstyle for SIRL_ERROR.
 
static const sir_textstyle sir_lvl_warn_def_style
 Default sir_textstyle for SIRL_WARN.
 
static const sir_textstyle sir_lvl_notice_def_style
 Default sir_textstyle for SIRL_NOTICE.
 
static const sir_textstyle sir_lvl_info_def_style
 Default sir_textstyle for SIRL_INFO.
 
static const sir_textstyle sir_lvl_debug_def_style
 Default sir_textstyle for SIRL_DEBUG.
 

Detailed Description

Default sir_option bitmasks, sir_level registrations, and sir_textstyle bitmasks.

See also
SIRO_DEFAULT
SIRL_DEFAULT

Variable Documentation

◆ sir_file_def_lvls

const sir_levels sir_file_def_lvls = SIRL_ALL
static

Default levels for log files.

Log file destinations are registered for these levels if SIRL_DEFAULT is passed to sir_addfile.

Note
Can be modified at runtime by calling sir_filelevels.
SIRL_ALL includes every logging level from debug to emergency.

◆ sir_file_def_opts

const sir_options sir_file_def_opts = SIRO_ALL | SIRO_NOHOST
static

Default options for log files.

Applied to log file destinations if SIRO_DEFAULT is passed to sir_addfile.

Note
Can be modified at runtime by calling sir_fileopts.

◆ sir_lvl_alert_def_style

const sir_textstyle sir_lvl_alert_def_style
static
Initial value:
= {
}
@ SIRTA_BOLD
Bold text.
Definition types.h:109
@ SIRTC_BYELLOW
Bright yellow.
Definition types.h:129
@ SIRTC_BLACK
Black.
Definition types.h:118

Default sir_textstyle for SIRL_ALERT.

Applied to stdio destinations upon library initialization.

Note
Can be modified at runtime by calling sir_settextstyle.

◆ sir_lvl_crit_def_style

const sir_textstyle sir_lvl_crit_def_style
static
Initial value:
= {
}
@ SIRTC_DEFAULT
Represents the default color.
Definition types.h:137
@ SIRTC_RED
Red.
Definition types.h:119

Default sir_textstyle for SIRL_CRIT.

Applied to stdio destinations upon library initialization.

Note
Can be modified at runtime by calling sir_settextstyle.

◆ sir_lvl_debug_def_style

const sir_textstyle sir_lvl_debug_def_style
static
Initial value:
= {
}
@ SIRTA_NORMAL
Normal text.
Definition types.h:108
@ SIRTC_DGRAY
Dark gray.
Definition types.h:126

Default sir_textstyle for SIRL_DEBUG.

Applied to stdio destinations upon library initialization.

Note
Can be modified at runtime by calling sir_settextstyle.

◆ sir_lvl_emerg_def_style

const sir_textstyle sir_lvl_emerg_def_style
static
Initial value:

Default sir_textstyle for SIRL_EMERG.

Applied to stdio destinations upon library initialization.

Note
Can be modified at runtime by calling sir_settextstyle.

◆ sir_lvl_error_def_style

const sir_textstyle sir_lvl_error_def_style
static
Initial value:

Default sir_textstyle for SIRL_ERROR.

Applied to stdio destinations upon library initialization.

Note
Can be modified at runtime by calling sir_settextstyle.

◆ sir_lvl_info_def_style

const sir_textstyle sir_lvl_info_def_style
static
Initial value:
= {
}
@ SIRTC_WHITE
White.
Definition types.h:133

Default sir_textstyle for SIRL_INFO.

Applied to stdio destinations upon library initialization.

Note
Can be modified at runtime by calling sir_settextstyle.

◆ sir_lvl_notice_def_style

const sir_textstyle sir_lvl_notice_def_style
static
Initial value:
= {
}
@ SIRTC_CYAN
Cyan.
Definition types.h:124

Default sir_textstyle for SIRL_NOTICE.

Applied to stdio destinations upon library initialization.

Note
Can be modified at runtime by calling sir_settextstyle.

◆ sir_lvl_warn_def_style

const sir_textstyle sir_lvl_warn_def_style
static
Initial value:
= {
}
@ SIRTC_YELLOW
Yellow.
Definition types.h:121

Default sir_textstyle for SIRL_WARN.

Applied to stdio destinations upon library initialization.

Note
Can be modified at runtime by calling sir_settextstyle.

◆ sir_stderr_def_lvls

const sir_levels sir_stderr_def_lvls = SIRL_ERROR | SIRL_CRIT | SIRL_ALERT | SIRL_EMERG
static

Default levels for stderr.

The stderr destination is registered for these levels if SIRL_DEFAULT is set on the sir_stdio_dest when sir_init is called.

Note
Can be modified at runtime by calling sir_stderrlevels.

◆ sir_stderr_def_opts

const sir_options sir_stderr_def_opts = SIRO_NOTIME | SIRO_NOHOST | SIRO_NOPID | SIRO_NOTID
static

Default options for stderr.

These options are applied to the stderr destination if SIRO_DEFAULT is set on the sir_stdio_dest when sir_init is called.

Note
Can be modified at runtime by calling sir_stderropts.

◆ sir_stdout_def_lvls

const sir_levels sir_stdout_def_lvls = SIRL_DEBUG | SIRL_INFO | SIRL_NOTICE | SIRL_WARN
static

Default levels for stdout.

The stdout destination is registered for these levels if SIRL_DEFAULT is set on the sir_stdio_dest when sir_init is called.

Note
Can be modified at runtime by calling sir_stdoutlevels.

◆ sir_stdout_def_opts

const sir_options sir_stdout_def_opts = SIRO_NOTIME | SIRO_NOHOST | SIRO_NOPID | SIRO_NOTID
static

Default options for stdout.

These options are applied to the stdout destination if SIRO_DEFAULT is set on the sir_stdio_dest when sir_init is called.

Note
Can be modified at runtime by calling sir_stdoutopts.

◆ sir_syslog_def_lvls

const sir_levels sir_syslog_def_lvls
static
Initial value:
#define SIRL_EMERG
Nuclear war, Armageddon, etc.
Definition types.h:59
#define SIRL_ERROR
Errors.
Definition types.h:62
#define SIRL_ALERT
Action required ASAP.
Definition types.h:60
#define SIRL_WARN
Warnings that could likely be ignored.
Definition types.h:63
#define SIRL_CRIT
Critical errors.
Definition types.h:61
#define SIRL_NOTICE
Normal but significant.
Definition types.h:64

Default levels for the system logger.

The system logger destination is registered for these levels if SIRL_DEFAULT is set on the sir_syslog_dest when sir_init is called.

Note
Can be modified at runtime by calling sir_sysloglevels.

◆ sir_syslog_def_opts

const sir_options sir_syslog_def_opts = SIRO_MSGONLY
static

Default options for the system logger.

Applied to the system logger destination if SIRO_DEFAULT is set on the sir_syslog_dest when sir_init is called.

Note
Can be modified at runtime by calling sir_syslogopts.
SIRO_MSGONLY disables all output formatting, leaving just the message text itself.