/usr/include/boost/log/sinks
NameSizeModeActions
async_frontend.hpp187710644editdlrm
attribute_mapping.hpp83970644editdlrm
auto_newline_mode.hpp12370644editdlrm
basic_sink_backend.hpp29410644editdlrm
basic_sink_frontend.hpp157440644editdlrm
block_on_overflow.hpp39890644editdlrm
bounded_fifo_queue.hpp54850644editdlrm
bounded_ordering_queue.hpp89070644editdlrm
debug_output_backend.hpp27140644editdlrm
drop_on_overflow.hpp19470644editdlrm
event_log_backend.hpp259620644editdlrm
event_log_constants.hpp24970644editdlrm
frontend_requirements.hpp37110644editdlrm
sink.hpp33510644editdlrm
sync_frontend.hpp59620644editdlrm
syslog_backend.hpp102210644editdlrm
syslog_constants.hpp42670644editdlrm
text_file_backend.hpp244410644editdlrm
text_ipc_message_queue_backend.hpp62530644editdlrm
text_multifile_backend.hpp75940644editdlrm
text_ostream_backend.hpp53330644editdlrm
unbounded_fifo_queue.hpp40210644editdlrm
unbounded_ordering_queue.hpp79280644editdlrm
unlocked_frontend.hpp51910644editdlrm
Edit: /usr/include/boost/log/sinks/debug_output_backend.hpp (2714B)
/* * 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 debug_output_backend.hpp * \author Andrey Semashev * \date 07.11.2008 * * The header contains a logging sink backend that outputs log records to the debugger. */ #ifndef BOOST_LOG_SINKS_DEBUG_OUTPUT_BACKEND_HPP_INCLUDED_ #define BOOST_LOG_SINKS_DEBUG_OUTPUT_BACKEND_HPP_INCLUDED_ #include #include #ifdef BOOST_HAS_PRAGMA_ONCE #pragma once #endif #ifndef BOOST_LOG_WITHOUT_DEBUG_OUTPUT #include #include #include #include #include namespace boost { BOOST_LOG_OPEN_NAMESPACE namespace sinks { /*! * \brief An implementation of a logging sink backend that outputs to the debugger * * The sink uses Windows API in order to write log records as debug messages, if the * application process is run under debugger. The sink backend also provides a specific * filter that allows to check whether the debugger is available and thus elide unnecessary * formatting. */ template< typename CharT > class basic_debug_output_backend : public basic_formatted_sink_backend< CharT, concurrent_feeding > { //! Base type typedef basic_formatted_sink_backend< CharT, concurrent_feeding > base_type; public: //! Character type typedef typename base_type::char_type char_type; //! String type to be used as a message text holder typedef typename base_type::string_type string_type; public: /*! * Constructor. Initializes the sink backend. */ BOOST_LOG_API basic_debug_output_backend(); /*! * Destructor */ BOOST_LOG_API ~basic_debug_output_backend(); /*! * The method passes the formatted message to debugger */ BOOST_LOG_API void consume(record_view const& rec, string_type const& formatted_message); }; #ifdef BOOST_LOG_USE_CHAR typedef basic_debug_output_backend< char > debug_output_backend; //!< Convenience typedef for narrow-character logging #endif #ifdef BOOST_LOG_USE_WCHAR_T typedef basic_debug_output_backend< wchar_t > wdebug_output_backend; //!< Convenience typedef for wide-character logging #endif } // namespace sinks BOOST_LOG_CLOSE_NAMESPACE // namespace log } // namespace boost #include #endif // BOOST_LOG_WITHOUT_DEBUG_OUTPUT #endif // BOOST_LOG_SINKS_DEBUG_OUTPUT_BACKEND_HPP_INCLUDED_