2 * Copyright Andrey Semashev 2019.
3 * Distributed under the Boost Software License, Version 1.0.
4 * (See accompanying file LICENSE_1_0.txt or copy at
5 * https://www.boost.org/LICENSE_1_0.txt)
8 * \file sinks/auto_newline_mode.hpp
9 * \author Andrey Semashev
12 * The header contains definition of auto-newline modes.
15 #ifndef BOOST_LOG_SINKS_AUTO_NEWLINE_MODE_HPP_INCLUDED_HPP_
16 #define BOOST_LOG_SINKS_AUTO_NEWLINE_MODE_HPP_INCLUDED_HPP_
18 #include <boost/log/detail/config.hpp>
19 #include <boost/log/detail/header.hpp>
21 #ifdef BOOST_HAS_PRAGMA_ONCE
27 BOOST_LOG_OPEN_NAMESPACE
31 //! The enum lists automatic trailing newline modes
32 enum auto_newline_mode
34 disabled_auto_newline, //!< Do not insert automatic trailing newline characters
35 always_insert, //!< Always insert automatic trailing newline characters
36 insert_if_missing //!< Insert automatic trailing newline characters, if not present already
41 BOOST_LOG_CLOSE_NAMESPACE // namespace log
45 #include <boost/log/detail/footer.hpp>
47 #endif // BOOST_LOG_SINKS_AUTO_NEWLINE_MODE_HPP_INCLUDED_HPP_