Apache Log4cxx  Version 1.3.0
Loading...
Searching...
No Matches
log4cxx.h
Go to the documentation of this file.
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18#ifndef LOG4CXX_LOG4CXX_H
19#define LOG4CXX_LOG4CXX_H
20
21/* GENERATED FILE WARNING! DO NOT EDIT log4cxx.h
22 *
23 * Edit log4cxx.h.in instead
24 *
25 */
26
27
28#define LOG4CXX_ABI_VERSION 15
29#define LOG4CXX_VERSION_MAJOR 1
30#define LOG4CXX_VERSION_MINOR 2
31#define LOG4CXX_VERSION_PATCH 0
32#define LOG4CXX_VERSION_TWEAK 0
33#define LOG4CXX_MAKE_VERSION(major, minor, patch, tweak) (((major) << 24) |\
34 ((minor) << 16) |\
35 ((patch) << 8) |\
36 (tweak) )
37#define LOG4CXX_VERSION_GET_MAJOR(version) (((version) >> 24) & 0xFF)
38#define LOG4CXX_VERSION_GET_MINOR(version) (((version) >> 16) & 0xFF)
39#define LOG4CXX_VERSION_GET_PATCH(version) (((version) >> 8) & 0xFF)
40#define LOG4CXX_VERSION_GET_TWEAK(version) ((version) & 0xFF)
41#define LOG4CXX_VERSION \
42 LOG4CXX_MAKE_VERSION(LOG4CXX_VERSION_MAJOR, LOG4CXX_VERSION_MINOR, LOG4CXX_VERSION_PATCH, LOG4CXX_VERSION_TWEAK)
43
44#define LOG4CXX_LOGCHAR_IS_UNICHAR 0
45#define LOG4CXX_LOGCHAR_IS_UTF8 1
46#define LOG4CXX_LOGCHAR_IS_WCHAR 0
47
48#define LOG4CXX_CHAR_API 1
49#define LOG4CXX_WCHAR_T_API 1
50#define LOG4CXX_UNICHAR_API 0
51#define LOG4CXX_CFSTRING_API 0
52#define LOG4CXX_HAS_NETWORKING 1
53#define LOG4CXX_HAS_MULTIPROCESS_ROLLING_FILE_APPENDER 0
54#define LOG4CXX_EVENTS_AT_EXIT 0
55#define LOG4CXX_HAS_DOMCONFIGURATOR 1
56
57
58#define LOG4CXX_USE_GLOBAL_SCOPE_TEMPLATE 0
59#define LOG4CXX_LOGSTREAM_ADD_NOP 0
60
61#include <log4cxx/helpers/makeunique.h>
62#include <cstdint>
63
64#define LOG4CXX_PTR_DEF(T) typedef std::shared_ptr<T> T##Ptr;\
65 typedef std::weak_ptr<T> T##WeakPtr
66#define LOG4CXX_UNIQUE_PTR_DEF(T) typedef std::unique_ptr<T> T##UniquePtr;
67#define LOG4CXX_LIST_DEF(N, T) typedef std::vector<T> N
68#define LOG4CXX_PRIVATE_PTR(T) std::unique_ptr<T>
69
70#if defined(_MSC_VER)
71#define LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(T, V) \
72__pragma( warning( push ) ) \
73__pragma( warning( disable : 4251 ) ) \
74 struct T; LOG4CXX_PRIVATE_PTR(T) V; \
75__pragma( warning( pop ) )
76
77#define LOG4CXX_DECLARE_PRIVATE_MEMBER(T, V) \
78__pragma( warning( push ) ) \
79__pragma( warning( disable : 4251 ) ) \
80 T V; \
81__pragma( warning( pop ) )
82
83#define LOG4CXX_INSTANTIATE_EXPORTED_PTR(T) template class LOG4CXX_EXPORT std::shared_ptr<T>
84#else // !defined(_MSC_VER)
85#define LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(T, V) struct T; LOG4CXX_PRIVATE_PTR(T) V;
86#define LOG4CXX_DECLARE_PRIVATE_MEMBER(T, V) T V;
87#define LOG4CXX_INSTANTIATE_EXPORTED_PTR(T)
88#endif // defined(_MSC_VER)
89
90#if defined(_WIN32) && defined(_MSC_VER)
91#if defined(LOG4CXX_STATIC) // Linking a static library?
92#define LOG4CXX_EXPORT
93#elif defined(LOG4CXX) // Building a DLL?
94#define LOG4CXX_EXPORT __declspec(dllexport)
95#else // Linking against a DLL?
96#define LOG4CXX_EXPORT __declspec(dllimport)
97#endif // !LOG4CXX_STATIC
98#elif defined(__GNUC__) && 4 <= __GNUC__ && 15 < LOG4CXX_ABI_VERSION
99 #define LOG4CXX_EXPORT __attribute__ ((visibility ("default")))
100#else // !(defined(_WIN32) && defined(_MSC_VER)) || LOG4CXX_ABI_VERSION <= 15 || __GNUC__ < 4
101 #define LOG4CXX_EXPORT
102#endif
103
104#define LOG4CXX_NS log4cxx
105
106namespace LOG4CXX_NS {
107
111typedef int64_t log4cxx_time_t;
112
114
123
124}
125
126#if 0
127namespace log4cxx = LOG4CXX_NS;
128#endif
129
130#define LOG4CXX_USING_STD_FORMAT 0
131#if !defined(LOG4CXX_FORMAT_NS) && LOG4CXX_USING_STD_FORMAT
132#define LOG4CXX_FORMAT_NS std
133#elif !defined(LOG4CXX_FORMAT_NS)
134#define LOG4CXX_FORMAT_NS fmt
135#endif
136
137#endif
#define LOG4CXX_EXPORT
Definition: log4cxx.h:101
#define LOG4CXX_NS
Definition: log4cxx.h:104
Definition: configuration.h:25
LOG4CXX_EXPORT uint32_t libraryVersion()
Query the compiled version of the library.
int64_t log4cxx_time_t
log4cxx_time_t - holds the number of microseconds since 1970-01-01
Definition: log4cxx.h:111
int log4cxx_status_t
Definition: log4cxx.h:113