File indexing completed on 2025-01-18 09:39:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef BOOST_LOG_SINKS_EVENT_LOG_CONSTANTS_HPP_INCLUDED_
0017 #define BOOST_LOG_SINKS_EVENT_LOG_CONSTANTS_HPP_INCLUDED_
0018
0019 #include <boost/log/detail/config.hpp>
0020
0021 #ifdef BOOST_HAS_PRAGMA_ONCE
0022 #pragma once
0023 #endif
0024
0025 #ifndef BOOST_LOG_WITHOUT_EVENT_LOG
0026
0027 #include <boost/log/detail/tagged_integer.hpp>
0028 #include <boost/log/detail/header.hpp>
0029
0030 namespace boost {
0031
0032 BOOST_LOG_OPEN_NAMESPACE
0033
0034 namespace sinks {
0035
0036 namespace event_log {
0037
0038 struct event_id_tag;
0039
0040 typedef boost::log::aux::tagged_integer< unsigned int, event_id_tag > event_id;
0041
0042
0043
0044 inline event_id make_event_id(unsigned int id)
0045 {
0046 event_id iden = { id };
0047 return iden;
0048 }
0049
0050 struct event_category_tag;
0051
0052 typedef boost::log::aux::tagged_integer< unsigned short, event_category_tag > event_category;
0053
0054
0055
0056 inline event_category make_event_category(unsigned short cat)
0057 {
0058 event_category category = { cat };
0059 return category;
0060 }
0061
0062
0063 enum event_type
0064 {
0065 success = 0,
0066 info = 4,
0067 warning = 2,
0068 error = 1
0069 };
0070
0071
0072
0073
0074 BOOST_LOG_API event_type make_event_type(unsigned short lev);
0075
0076 }
0077
0078 }
0079
0080 BOOST_LOG_CLOSE_NAMESPACE
0081
0082 }
0083
0084 #include <boost/log/detail/footer.hpp>
0085
0086 #endif
0087
0088 #endif