Changeset 146 in pacpusframework for branches/2.0-beta1/src/PacpusLib/Log.cpp
- Timestamp:
- Jul 31, 2013, 11:20:11 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/src/PacpusLib/Log.cpp
r144 r146 46 46 { 47 47 if (0 == niftyCounter++) { 48 LOG_INFO("LogConfigurator constructor"); 48 49 init_log_factories(); 49 50 } … … 54 55 if (0 == --niftyCounter) { 55 56 // clean up 57 LOG_INFO("LogConfigurator destructor"); 56 58 } 57 59 } … … 71 73 logging::core::get()->set_filter 72 74 ( 75 #ifdef NDEBUG 76 // release 73 77 logging::trivial::severity >= logging::trivial::debug 78 #else 79 // debug 80 logging::trivial::severity >= logging::trivial::trace 81 #endif 74 82 ); 75 83 … … 95 103 // Create a backend and attach a couple of streams to it 96 104 boost::shared_ptr< sinks::text_ostream_backend > backend = 97 make_shared< sinks::text_ostream_backend >( 98 //keywords::format = "[%TimeStamp%]: %Message%" 99 ); 105 make_shared< sinks::text_ostream_backend >(); 100 106 backend->add_stream( 101 107 shared_ptr< std::ostream >(&std::clog, logging::empty_deleter()) … … 113 119 logging::trivial::severity >= logging::trivial::info 114 120 ); 121 115 122 sink->set_formatter 116 123 (
Note:
See TracChangeset
for help on using the changeset viewer.