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)
8 * \file from_stream.hpp
9 * \author Andrey Semashev
12 * The header contains definition of facilities that allows to initialize the library from a
16 #ifndef BOOST_LOG_UTILITY_SETUP_FROM_STREAM_HPP_INCLUDED_
17 #define BOOST_LOG_UTILITY_SETUP_FROM_STREAM_HPP_INCLUDED_
20 #include <boost/log/detail/setup_config.hpp>
21 #include <boost/log/detail/header.hpp>
23 #ifdef BOOST_HAS_PRAGMA_ONCE
29 BOOST_LOG_OPEN_NAMESPACE
32 * The function initializes the logging library from a stream containing logging settings
34 * \param strm Stream, that provides library settings
36 * \b Throws: An <tt>std::exception</tt>-based exception if the read data cannot be interpreted as the library settings
38 template< typename CharT >
39 BOOST_LOG_SETUP_API void init_from_stream(std::basic_istream< CharT >& strm);
41 BOOST_LOG_CLOSE_NAMESPACE // namespace log
45 #include <boost/log/detail/footer.hpp>
47 #endif // BOOST_LOG_UTILITY_SETUP_FROM_STREAM_HPP_INCLUDED_