Changeset 237 in pacpusframework for trunk/include/Pacpus


Ignore:
Timestamp:
Nov 28, 2013, 5:11:42 PM (11 years ago)
Author:
Marek Kurdej
Message:

Fixed: severity level output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Pacpus/kernel/Log.h

    r236 r237  
    4040#   include <boost/log/sources/record_ostream.hpp>
    4141#   include <boost/log/sources/severity_logger.hpp>
     42#   include <boost/log/trivial.hpp>
    4243#   include <iosfwd>
    4344
    4445namespace pacpus
    4546{
    46     /// Trivial severity levels
    47     /*PACPUSLIB_API*/ enum SeverityLevel
    48     {
    49         trace,
    50         debug,
    51         info,
    52         warning,
    53         error,
    54         fatal
    55     };
     47
     48    typedef boost::log::trivial::severity_level SeverityLevel;
     49    using boost::log::trivial::trace;
     50    using boost::log::trivial::debug;
     51    using boost::log::trivial::info;
     52    using boost::log::trivial::warning;
     53    using boost::log::trivial::error;
     54    using boost::log::trivial::fatal;
    5655
    5756    BOOST_LOG_INLINE_GLOBAL_LOGGER_DEFAULT(gLogger, ::boost::log::sources::severity_logger_mt< ::pacpus::SeverityLevel>)
Note: See TracChangeset for help on using the changeset viewer.