2 * Copyright Andrey Semashev 2007 - 2014.
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)
8 * \file init_from_stream.cpp
9 * \author Andrey Semashev
12 * \brief This header is the Boost.Log library implementation, see the library documentation
13 * at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html.
16 #ifndef BOOST_LOG_WITHOUT_SETTINGS_PARSERS
18 #include <boost/log/detail/config.hpp>
19 #include <boost/log/utility/setup/from_settings.hpp>
20 #include <boost/log/utility/setup/settings_parser.hpp>
21 #include <boost/log/detail/header.hpp>
25 BOOST_LOG_OPEN_NAMESPACE
27 //! The function initializes the logging library from a stream containing logging settings
28 template< typename CharT >
29 void init_from_stream(std::basic_istream< CharT >& strm)
31 init_from_settings(parse_settings(strm));
34 #ifdef BOOST_LOG_USE_CHAR
35 template BOOST_LOG_SETUP_API void init_from_stream< char >(std::basic_istream< char >& strm);
37 #ifdef BOOST_LOG_USE_WCHAR_T
38 template BOOST_LOG_SETUP_API void init_from_stream< wchar_t >(std::basic_istream< wchar_t >& strm);
41 BOOST_LOG_CLOSE_NAMESPACE // namespace log
45 #include <boost/log/detail/footer.hpp>
47 #endif // BOOST_LOG_WITHOUT_SETTINGS_PARSERS