123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef BOOST_LOG_SINKS_DEBUG_OUTPUT_BACKEND_HPP_INCLUDED_
- #define BOOST_LOG_SINKS_DEBUG_OUTPUT_BACKEND_HPP_INCLUDED_
- #include <string>
- #include <boost/log/detail/config.hpp>
- #ifdef BOOST_HAS_PRAGMA_ONCE
- #pragma once
- #endif
- #ifndef BOOST_LOG_WITHOUT_DEBUG_OUTPUT
- #include <boost/log/sinks/basic_sink_backend.hpp>
- #include <boost/log/sinks/frontend_requirements.hpp>
- #include <boost/log/attributes/attribute_value_set.hpp>
- #include <boost/log/core/record_view.hpp>
- #include <boost/log/detail/header.hpp>
- namespace boost {
- BOOST_LOG_OPEN_NAMESPACE
- namespace sinks {
- template< typename CharT >
- class basic_debug_output_backend :
- public basic_formatted_sink_backend< CharT, concurrent_feeding >
- {
-
- typedef basic_formatted_sink_backend< CharT, concurrent_feeding > base_type;
- public:
-
- typedef typename base_type::char_type char_type;
-
- typedef typename base_type::string_type string_type;
- public:
-
- BOOST_LOG_API basic_debug_output_backend();
-
- BOOST_LOG_API ~basic_debug_output_backend();
-
- 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;
- #endif
- #ifdef BOOST_LOG_USE_WCHAR_T
- typedef basic_debug_output_backend< wchar_t > wdebug_output_backend;
- #endif
- }
- BOOST_LOG_CLOSE_NAMESPACE
- }
- #include <boost/log/detail/footer.hpp>
- #endif
- #endif
|