I had the same problem, so i tried using `set_formatter`with lambda
expression, which worked for me.
On Dec 4, 2013 4:51 PM, "Igor R"
Hello,
I'm setting up a sink like this:
boost::shared_ptrsinks::text_file_backend backend = boost::make_sharedsinks::text_file_backend ( keywords::file_name = fileName, keywords::rotation_size = maxSize, keywords::format = "[%TimeStamp%][%LineID%]: %Message%", keywords::auto_flush = true );
typedef sinks::synchronous_sinksinks::text_file_backend file_sink; boost::shared_ptr
sink = boost::make_shared (backend); sink->set_filter(!expr::has_attr(serv_attr)); logging::core::get()->add_sink(sink); logging::add_common_attributes(); However, it seems that keywords::format parameter is just ignored. What am I doing wrong? _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users