KIM API V2
KIM_ModelRefreshLogMacros.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--2018, 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-v2.0.0-alpha.0 package.
31 //
32 
33 
34 #ifdef LOG_FATAL
35 #undef LOG_FATAL
36 #endif
37 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
38 #define LOG_FATAL(message) \
39  modelRefresh->LogEntry(KIM_LOG_VERBOSITY_fatal, message, \
40  __LINE__, __FILE__)
41 #else
42 #define LOG_FATAL(message)
43 #endif
44 
45 #ifdef LOG_ERROR
46 #undef LOG_ERROR
47 #endif
48 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
49 #define LOG_ERROR(message) \
50  modelRefresh->LogEntry(KIM_LOG_VERBOSITY_error, message, \
51  __LINE__, __FILE__)
52 #else
53 #define LOG_ERROR(message)
54 #endif
55 
56 #ifdef LOG_WARNING
57 #undef LOG_WARNING
58 #endif
59 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
60 #define LOG_WARNING(message) \
61  modelRefresh->LogEntry(KIM_LOG_VERBOSITY_warning, message, \
62  __LINE__, __FILE__)
63 #else
64 #define LOG_WARNING(message)
65 #endif
66 
67 #ifdef LOG_INFORMATION
68 #undef LOG_INFORMATION
69 #endif
70 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
71 #define LOG_INFORMATION(message) \
72  modelRefresh->LogEntry(KIM_LOG_VERBOSITY_information, message, \
73  __LINE__, __FILE__)
74 #else
75 #define LOG_INFORMATION(message)
76 #endif
77 
78 #ifdef LOG_DEBUG
79 #undef LOG_DEBUG
80 #endif
81 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
82 #define LOG_DEBUG(message) \
83  modelRefresh->LogEntry(KIM_LOG_VERBOSITY_debug, message, \
84  __LINE__, __FILE__)
85 #else
86 #define LOG_DEBUG(message)
87 #endif