OR-Tools
8.1
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
17
#include "
ortools/base/logging_export.h
"
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.
22
typedef
int
LogSeverity
;
23
24
namespace
google
{
25
const
int
GLOG_INFO
= 0,
GLOG_WARNING
= 1,
GLOG_ERROR
= 2,
GLOG_FATAL
= 3,
26
NUM_SEVERITIES
= 4;
27
28
extern
GOOGLE_GLOG_DLL_DECL
const
char
*
const
LogSeverityNames
[
NUM_SEVERITIES
];
29
}
// namespace google
30
#ifndef _MSC_VER
31
const
int
INFO
=
google::GLOG_INFO
,
WARNING
=
google::GLOG_WARNING
,
32
ERROR
=
google::GLOG_ERROR
,
FATAL
=
google::GLOG_FATAL
;
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_
INFO
const int INFO
Definition:
log_severity.h:31
google::GLOG_INFO
const int GLOG_INFO
Definition:
log_severity.h:25
google::NUM_SEVERITIES
const int NUM_SEVERITIES
Definition:
log_severity.h:26
logging_export.h
ERROR
const int ERROR
Definition:
log_severity.h:32
FATAL
const int FATAL
Definition:
log_severity.h:32
google::GLOG_ERROR
const int GLOG_ERROR
Definition:
log_severity.h:25
GOOGLE_GLOG_DLL_DECL
#define GOOGLE_GLOG_DLL_DECL
Definition:
logging_export.h:27
LogSeverity
int LogSeverity
Definition:
log_severity.h:22
WARNING
const int WARNING
Definition:
log_severity.h:31
google::LogSeverityNames
GOOGLE_GLOG_DLL_DECL const char *const LogSeverityNames[NUM_SEVERITIES]
Definition:
base/logging.cc:358
google::GLOG_FATAL
const int GLOG_FATAL
Definition:
log_severity.h:25
google::GLOG_WARNING
const int GLOG_WARNING
Definition:
log_severity.h:25
google
Definition:
log_severity.h:24
ortools
base
log_severity.h
Generated by
1.8.20