Seastar
High performance C++ framework for concurrent servers
|
Logging configuration.
#include <seastar/util/log-cli.hh>
Public Types | |
using | value_list_type = boost::intrusive::list< basic_value, boost::intrusive::base_hook< list_base_hook >, boost::intrusive::constant_time_size< false > > |
using | option_group_list_type = boost::intrusive::list< option_group, boost::intrusive::base_hook< list_base_hook >, boost::intrusive::constant_time_size< false > > |
Public Member Functions | |
operator bool () const | |
Does the option group has any values contained in it? | |
bool | used () const |
const std::string & | name () const |
const value_list_type & | values () const |
value_list_type & | values () |
void | describe (options_descriptor &descriptor) const |
void | mutate (options_mutator &mutator) |
Public Attributes | |
program_options::value< log_level > | default_log_level |
Default log level for log messages. More... | |
program_options::value< log_level_map > | logger_log_level |
Map of logger name to log level. More... | |
program_options::value< logger_timestamp_style > | logger_stdout_timestamps |
program_options::value< bool > | log_to_stdout |
Send log output to output stream. More... | |
program_options::value< seastar::logger_ostream_type > | logger_ostream_type |
program_options::value< bool > | log_to_syslog |
program_options::value< bool > | log_with_color |
|
inherited |
Describe the content of this option group to the visitor.
The content is visited in a depth-first manner:
false
the entire content of the group, including all its subgroups and values are skipped and options_descriptor::visit_group_end() is called immediately. Otherwise visiting the content of the group proceeds.false
the value is skipped, otherwise visiting the value proceeds.
|
inherited |
Mutate the content of this option group by the visitor.
The visiting algorithm is identical to that of describe(), with the following differences:
true
if it did so and false
otherwise.program_options::value<log_level> seastar::log_cli::options::default_log_level |
Default log level for log messages.
Valid values are trace, debug, info, warn, error. Default: info
program_options::value<bool> seastar::log_cli::options::log_to_stdout |
Send log output to output stream.
As selected by logger_ostream_type. Default: true
.
program_options::value<bool> seastar::log_cli::options::log_to_syslog |
Send log output to syslog.
Default: false
.
program_options::value<bool> seastar::log_cli::options::log_with_color |
Print colored tag prefix in log messages sent to output stream.
Default: true
.
program_options::value<log_level_map> seastar::log_cli::options::logger_log_level |
Map of logger name to log level.
The format is NAME0=LEVEL0[:NAME1=LEVEL1:...]
. Valid logger names can be queried with --help-loggers
. This option can be specified multiple times.
program_options::value<seastar::logger_ostream_type> seastar::log_cli::options::logger_ostream_type |
Send log output to.
Default: stderr
.
program_options::value<logger_timestamp_style> seastar::log_cli::options::logger_stdout_timestamps |
Select timestamp style for stdout logs.
Default: real
.