![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/include/boost/log/sources/ |
Upload File : |
/* * Copyright Andrey Semashev 2007 - 2015. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ /*! * \file logger.hpp * \author Andrey Semashev * \date 08.03.2007 * * The header contains implementation of a simplistic logger with no features. */ #ifndef BOOST_LOG_SOURCES_LOGGER_HPP_INCLUDED_ #define BOOST_LOG_SOURCES_LOGGER_HPP_INCLUDED_ #include <boost/log/detail/config.hpp> #include <boost/log/sources/basic_logger.hpp> #include <boost/log/sources/features.hpp> #include <boost/log/sources/threading_models.hpp> #if !defined(BOOST_LOG_NO_THREADS) #include <boost/log/detail/light_rw_mutex.hpp> #endif // !defined(BOOST_LOG_NO_THREADS) #include <boost/log/detail/header.hpp> #ifdef BOOST_HAS_PRAGMA_ONCE #pragma once #endif namespace boost { BOOST_LOG_OPEN_NAMESPACE namespace sources { #ifdef BOOST_LOG_USE_CHAR /*! * \brief Narrow-char logger. Functionally equivalent to \c basic_logger. * * See \c basic_logger class template for a more detailed description. */ class logger : public basic_composite_logger< char, logger, single_thread_model, features< > > { BOOST_LOG_FORWARD_LOGGER_MEMBERS(logger) }; #if !defined(BOOST_LOG_NO_THREADS) /*! * \brief Narrow-char thread-safe logger. Functionally equivalent to \c basic_logger. * * See \c basic_logger class template for a more detailed description. */ class logger_mt : public basic_composite_logger< char, logger_mt, multi_thread_model< boost::log::aux::light_rw_mutex >, features< > > { BOOST_LOG_FORWARD_LOGGER_MEMBERS(logger_mt) }; #endif // !defined(BOOST_LOG_NO_THREADS) #endif // BOOST_LOG_USE_CHAR #ifdef BOOST_LOG_USE_WCHAR_T /*! * \brief Wide-char logger. Functionally equivalent to \c basic_logger. * * See \c basic_logger class template for a more detailed description. */ class wlogger : public basic_composite_logger< wchar_t, wlogger, single_thread_model, features< > > { BOOST_LOG_FORWARD_LOGGER_MEMBERS(wlogger) }; #if !defined(BOOST_LOG_NO_THREADS) /*! * \brief Wide-char thread-safe logger. Functionally equivalent to \c basic_logger. * * See \c basic_logger class template for a more detailed description. */ class wlogger_mt : public basic_composite_logger< wchar_t, wlogger_mt, multi_thread_model< boost::log::aux::light_rw_mutex >, features< > > { BOOST_LOG_FORWARD_LOGGER_MEMBERS(wlogger_mt) }; #endif // !defined(BOOST_LOG_NO_THREADS) #endif // BOOST_LOG_USE_WCHAR_T } // namespace sources BOOST_LOG_CLOSE_NAMESPACE // namespace log } // namespace boost #include <boost/log/detail/footer.hpp> #endif // BOOST_LOG_SOURCES_LOGGER_HPP_INCLUDED_