JayBeams
0.1
Another project to have fun coding.
|
Logging functions and objects for JayBeams. More...
Namespaces | |
defaults | |
Define the default values for logging configuration. | |
Classes | |
class | config |
Configuration object for the logging functions. More... | |
Functions | |
BOOST_LOG_ATTRIBUTE_KEYWORD (current_thread_id, "ThreadID", boost::log::attributes::current_thread_id::value_type) BOOST_LOG_ATTRIBUTE_KEYWORD(local_time | |
boost::log::attributes::local_clock::value_type bool | filter_predicate (::boost::log::attribute_value_set const &attr) |
void | format_common (boost::log::record_view const &rec, boost::log::formatting_ostream &strm) |
void | format_console (boost::log::record_view const &rec, boost::log::formatting_ostream &strm) |
void | format_logfile (boost::log::record_view const &rec, boost::log::formatting_ostream &strm) |
std::int64_t | tid () |
void | next_tid () |
void | init (config const &cfg=config()) |
Initialize the logging functions using the configuration provided. More... | |
BOOST_LOG_INLINE_GLOBAL_LOGGER_DEFAULT (logger, boost::log::sources::severity_logger_mt< severity_level >) void next_tid() | |
Define the global logger for JayBeams. More... | |
Variables | |
TimeStamp | |
std::int64_t | tid_ |
Logging functions and objects for JayBeams.
jb::log::BOOST_LOG_ATTRIBUTE_KEYWORD | ( | current_thread_id | , |
"ThreadID" | , | ||
boost::log::attributes::current_thread_id::value_type | |||
) |
Referenced by jb::log::config::validate().
jb::log::BOOST_LOG_INLINE_GLOBAL_LOGGER_DEFAULT | ( | logger | , |
boost::log::sources::severity_logger_mt< severity_level > | |||
) |
Define the global logger for JayBeams.
boost::log::attributes::local_clock::value_type bool jb::log::filter_predicate | ( | ::boost::log::attribute_value_set const & | attr | ) |
Definition at line 135 of file log.cpp.
References jb::debug, and JB_ASSERT_THROW.
Referenced by init().
void jb::log::format_common | ( | boost::log::record_view const & | rec, |
boost::log::formatting_ostream & | strm | ||
) |
Definition at line 147 of file log.cpp.
References jb::debug, and jb::severity_level_width().
Referenced by format_console(), and format_logfile().
void jb::log::format_console | ( | boost::log::record_view const & | rec, |
boost::log::formatting_ostream & | strm | ||
) |
void jb::log::format_logfile | ( | boost::log::record_view const & | rec, |
boost::log::formatting_ostream & | strm | ||
) |
void jb::log::init | ( | config const & | cfg | ) |
Initialize the logging functions using the configuration provided.
Definition at line 190 of file log.cpp.
References jb::log::config::enable_console_logging, jb::log::config::enable_file_logging, filter_predicate(), format_console(), format_logfile(), jb::log::config::logfile_archive_directory, jb::log::config::logfile_basename, jb::log::config::logfile_suffix, jb::itch5::defaults::max_size, jb::log::config::maximum_size_archived, jb::log::config::minimum_console_severity, jb::log::config::minimum_free_space, jb::log::config::minimum_severity, and tid().
Referenced by BOOST_AUTO_TEST_CASE(), main(), jb::testing::microbenchmark_group_main(), and run_inside().
void jb::log::next_tid | ( | ) |
std::int64_t jb::log::tid | ( | ) |
std::int64_t jb::log::tid_ |
Definition at line 180 of file log.cpp.
Referenced by next_tid(), and tid().