4 ! The contents of this file are subject to the terms of the Common Development
5 ! and Distribution License Version 1.0 (the "License").
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.
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:
16 ! Portions Copyright (c) [yyyy] [name of copyright owner]. All rights reserved.
22 ! Copyright (c) 2016--2018, Regents of the University of Minnesota.
23 ! All rights reserved.
30 ! Release: This file is part of the kim-api-v2.0.0-beta.1 package.
33 #include "KIM_LOG_DEFINES.inc"
35 #undef FATAL_VERBOSITY
36 #define FATAL_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
40 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
42 call kim_model_create_log_entry(model_create_handle, kim_log_verbosity_fatal, kim_log_message, __LINE__, kim_log_file)
47 #undef ERROR_VERBOSITY
48 #define ERROR_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
52 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
54 call kim_model_create_log_entry(model_create_handle, kim_log_verbosity_error, kim_log_message, __LINE__, kim_log_file)
59 #undef WARNING_VERBOSITY
60 #define WARNING_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
64 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
65 #define LOG_WARNING()\
66 call kim_model_create_log_entry(model_create_handle, kim_log_verbosity_warning, kim_log_message, __LINE__, kim_log_file)
71 #undef INFORMATION_VERBOSITY
72 #define INFORMATION_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
73 #ifdef LOG_INFORMATION
74 #undef LOG_INFORMATION
76 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
77 #define LOG_INFORMATION()\
78 call kim_model_create_log_entry(model_create_handle, kim_log_verbosity_information, kim_log_message, __LINE__, kim_log_file)
80 #define LOG_INFORMATION()
83 #undef DEBUG_VERBOSITY
84 #define DEBUG_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
88 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
90 call kim_model_create_log_entry(model_create_handle, kim_log_verbosity_debug, kim_log_message, __LINE__, kim_log_file)