libsir 2.2.5
Standard Incident Reporter
Loading...
Searching...
No Matches
defaults.h File Reference

Default levels, options, and text styling. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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 levels, options, and text styling.

The values herein represent the defaults for output destinations if defaults are requested upon initialization.

Version
2.2.5

SPDX-License-Identifier: MIT

Copyright (c) 2018-2024 Ryan M. Lederman leder.nosp@m.man@.nosp@m.gmail.nosp@m..com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.