kim-api
2.0.2+v2.0.2.GNU
An Application Programming Interface (API) for the Knowledgebase of Interatomic Models (KIM).
v2.0.2
cpp
include
KIM_LogMacros.hpp
Go to the documentation of this file.
1
//
2
// CDDL HEADER START
3
//
4
// The contents of this file are subject to the terms of the Common Development
5
// and Distribution License Version 1.0 (the "License").
6
//
7
// You can obtain a copy of the license at
8
// http://www.opensource.org/licenses/CDDL-1.0. See the License for the
9
// specific language governing permissions and limitations under the License.
10
//
11
// When distributing Covered Code, include this CDDL HEADER in each file and
12
// include the License file in a prominent location with the name LICENSE.CDDL.
13
// If applicable, add the following below this CDDL HEADER, with the fields
14
// enclosed by brackets "[]" replaced with your own identifying information:
15
//
16
// Portions Copyright (c) [yyyy] [name of copyright owner]. All rights reserved.
17
//
18
// CDDL HEADER END
19
//
20
21
//
22
// Copyright (c) 2016--2019, Regents of the University of Minnesota.
23
// All rights reserved.
24
//
25
// Contributors:
26
// Ryan S. Elliott
27
//
28
29
//
30
// Release: This file is part of the kim-api-2.0.2 package.
31
//
32
33
34
#undef FATAL_VERBOSITY
35
#define FATAL_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
37
#undef LOG_FATAL
38
#if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
39
#define LOG_FATAL(message) \
43
KIM_LOGGER_OBJECT_NAME->LogEntry( \
44
KIM::LOG_VERBOSITY::fatal, message, __LINE__, __FILE__)
45
#else
46
#define LOG_FATAL(message)
47
#endif
48
49
#undef ERROR_VERBOSITY
50
#define ERROR_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
52
#undef LOG_ERROR
53
#if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
54
#define LOG_ERROR(message) \
58
KIM_LOGGER_OBJECT_NAME->LogEntry( \
59
KIM::LOG_VERBOSITY::error, message, __LINE__, __FILE__)
60
#else
61
#define LOG_ERROR(message)
62
#endif
63
64
#undef WARNING_VERBOSITY
65
#define WARNING_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
67
#undef LOG_WARNING
68
#if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
69
#define LOG_WARNING(message) \
73
KIM_LOGGER_OBJECT_NAME->LogEntry( \
74
KIM::LOG_VERBOSITY::warning, message, __LINE__, __FILE__)
75
#else
76
#define LOG_WARNING(message)
77
#endif
78
79
#undef INFORMATION_VERBOSITY
80
#define INFORMATION_VERBOSITY \
82
(KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
83
#undef LOG_INFORMATION
84
#if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
85
#define LOG_INFORMATION(message) \
89
KIM_LOGGER_OBJECT_NAME->LogEntry( \
90
KIM::LOG_VERBOSITY::information, message, __LINE__, __FILE__)
91
#else
92
#define LOG_INFORMATION(message)
93
#endif
94
95
#undef DEBUG_VERBOSITY
96
#define DEBUG_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
98
#undef LOG_DEBUG
99
#if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
100
#define LOG_DEBUG(message) \
104
KIM_LOGGER_OBJECT_NAME->LogEntry( \
105
KIM::LOG_VERBOSITY::debug, message, __LINE__, __FILE__)
106
#else
107
#define LOG_DEBUG(message)
108
#endif
Generated by
1.8.13