Index: main.cpp =================================================================== --- main.cpp (revision 441) +++ main.cpp (working copy) @@ -42,6 +42,8 @@ using boost::shared_ptr; +#include + // Here we define our application severity levels. enum severity_level { @@ -52,6 +54,9 @@ critical }; +BOOST_PARAMETER_NAME(randomparam) + + // The formatting logic for the severity level template< typename CharT, typename TraitsT > inline std::basic_ostream< CharT, TraitsT >& operator<< ( @@ -78,7 +83,7 @@ // The first thing we have to do to get using the library is // to set up the logging sinks - i.e. where the logs will be written to. - logging::init_log_to_console(std::clog, keywords::format = "%TimeStamp%: %_%"); + logging::init_log_to_console(std::clog, keywords::format = "%TimeStamp%: %_%", _randomparam = 1); // One can also use lambda expressions to setup filters and formatters logging::init_log_to_file