2 * Copyright Andrey Semashev 2007 - 2015.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * http://www.boost.org/LICENSE_1_0.txt)
9 * \author Andrey Semashev
12 * The header contains implementation of a simplistic logger with no features.
15 #ifndef BOOST_LOG_SOURCES_LOGGER_HPP_INCLUDED_
16 #define BOOST_LOG_SOURCES_LOGGER_HPP_INCLUDED_
18 #include <boost/log/detail/config.hpp>
19 #include <boost/log/sources/basic_logger.hpp>
20 #include <boost/log/sources/features.hpp>
21 #include <boost/log/sources/threading_models.hpp>
22 #if !defined(BOOST_LOG_NO_THREADS)
23 #include <boost/log/detail/light_rw_mutex.hpp>
24 #endif // !defined(BOOST_LOG_NO_THREADS)
25 #include <boost/log/detail/header.hpp>
27 #ifdef BOOST_HAS_PRAGMA_ONCE
33 BOOST_LOG_OPEN_NAMESPACE
37 #ifdef BOOST_LOG_USE_CHAR
40 * \brief Narrow-char logger. Functionally equivalent to \c basic_logger.
42 * See \c basic_logger class template for a more detailed description.
45 public basic_composite_logger< char, logger, single_thread_model, features< > >
47 BOOST_LOG_FORWARD_LOGGER_MEMBERS(logger)
50 #if !defined(BOOST_LOG_NO_THREADS)
53 * \brief Narrow-char thread-safe logger. Functionally equivalent to \c basic_logger.
55 * See \c basic_logger class template for a more detailed description.
58 public basic_composite_logger< char, logger_mt, multi_thread_model< boost::log::aux::light_rw_mutex >, features< > >
60 BOOST_LOG_FORWARD_LOGGER_MEMBERS(logger_mt)
63 #endif // !defined(BOOST_LOG_NO_THREADS)
64 #endif // BOOST_LOG_USE_CHAR
66 #ifdef BOOST_LOG_USE_WCHAR_T
69 * \brief Wide-char logger. Functionally equivalent to \c basic_logger.
71 * See \c basic_logger class template for a more detailed description.
74 public basic_composite_logger< wchar_t, wlogger, single_thread_model, features< > >
76 BOOST_LOG_FORWARD_LOGGER_MEMBERS(wlogger)
79 #if !defined(BOOST_LOG_NO_THREADS)
82 * \brief Wide-char thread-safe logger. Functionally equivalent to \c basic_logger.
84 * See \c basic_logger class template for a more detailed description.
87 public basic_composite_logger< wchar_t, wlogger_mt, multi_thread_model< boost::log::aux::light_rw_mutex >, features< > >
89 BOOST_LOG_FORWARD_LOGGER_MEMBERS(wlogger_mt)
92 #endif // !defined(BOOST_LOG_NO_THREADS)
93 #endif // BOOST_LOG_USE_WCHAR_T
95 } // namespace sources
97 BOOST_LOG_CLOSE_NAMESPACE // namespace log
101 #include <boost/log/detail/footer.hpp>
103 #endif // BOOST_LOG_SOURCES_LOGGER_HPP_INCLUDED_