Changeset 146 in pacpusframework for branches/2.0-beta1/src/PacpusLib/Log.cpp


Ignore:
Timestamp:
Jul 31, 2013, 11:20:11 AM (11 years ago)
Author:
Marek Kurdej
Message:

Update: refactoring in XmlConfigFile.
Added: attributes 'prefix', 'postfix', 'extension' in <parameters>.
Example: <parameters prefix="" postfix="_d" extension="dll">

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/src/PacpusLib/Log.cpp

    r144 r146  
    4646{
    4747    if (0 == niftyCounter++) {
     48        LOG_INFO("LogConfigurator constructor");
    4849        init_log_factories();
    4950    }
     
    5455    if (0 == --niftyCounter) {
    5556        // clean up
     57        LOG_INFO("LogConfigurator destructor");
    5658    }
    5759}
     
    7173    logging::core::get()->set_filter
    7274    (
     75#ifdef NDEBUG
     76        // release
    7377        logging::trivial::severity >= logging::trivial::debug
     78#else
     79        // debug
     80        logging::trivial::severity >= logging::trivial::trace
     81#endif
    7482    );
    7583
     
    95103    // Create a backend and attach a couple of streams to it
    96104    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 >();
    100106    backend->add_stream(
    101107        shared_ptr< std::ostream >(&std::clog, logging::empty_deleter())
     
    113119        logging::trivial::severity >= logging::trivial::info
    114120    );
     121
    115122    sink->set_formatter
    116123    (
Note: See TracChangeset for help on using the changeset viewer.