Changeset 40523

Timestamp:
Oct 28, 2007, 12:48:46 PM (15 years ago)
Author:
jtorjo
Message:

[logging]
v0.9.0, 28 oct 2007

  • use_format_write has 4 params now, I've added 2 new params: thread_safety and gather
    • if you want to leave something unchanged, use "default_" as argument
  • added more complex example: Line Counter application
  • Breaking change:
    • filters are declared with BOOST_DECLARE_LOG_FILTER, and defined with BOOST_DEFINE_LOG_FILTER
    • filters are now used with operator->, instead of "."
    • Example:

BOOST_DEFINE_LOG_LEVEL(g_log_level, level::holder )
...
g_log_level->set_enabled(level::error);

  • rationale: filters, same as levels, could be used before main
(No files)

Note: See TracChangeset for help on using the changeset viewer.