OR-Tools  8.2
log_severity.h
Go to the documentation of this file.
1// Copyright 2010-2018 Google LLC
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14#ifndef OR_TOOLS_BASE_LOG_SEVERITY_H_
15#define OR_TOOLS_BASE_LOG_SEVERITY_H_
16
18
19// Variables of type LogSeverity are widely taken to lie in the range
20// [0, NUM_SEVERITIES-1]. Be careful to preserve this assumption if
21// you ever need to change their values or add a new severity.
22typedef int LogSeverity;
23
24namespace google {
25const int GLOG_INFO = 0, GLOG_WARNING = 1, GLOG_ERROR = 2, GLOG_FATAL = 3,
27
29} // namespace google
30#ifndef _MSC_VER
33#endif
34
35// DFATAL is FATAL in debug mode, ERROR in normal mode
36#ifdef NDEBUG
37#define DFATAL_LEVEL ERROR
38#else
39#define DFATAL_LEVEL FATAL
40#endif
41
42#endif // OR_TOOLS_BASE_LOG_SEVERITY_H_
const int WARNING
Definition: log_severity.h:31
int LogSeverity
Definition: log_severity.h:22
const int INFO
Definition: log_severity.h:31
const int ERROR
Definition: log_severity.h:32
const int FATAL
Definition: log_severity.h:32
#define GOOGLE_GLOG_DLL_DECL
const int GLOG_WARNING
Definition: log_severity.h:25
const int NUM_SEVERITIES
Definition: log_severity.h:26
GOOGLE_GLOG_DLL_DECL const char *const LogSeverityNames[NUM_SEVERITIES]
const int GLOG_FATAL
Definition: log_severity.h:25
const int GLOG_ERROR
Definition: log_severity.h:25
const int GLOG_INFO
Definition: log_severity.h:25