Ion
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
logging.cc
Go to the documentation of this file.
1
18
#include "
ion/port/logging.h
"
19
20
namespace
ion {
21
namespace
port {
22
24
const
char
*
LogEntryWriter::GetSeverityName
(
LogSeverity
severity)
const
{
25
switch
(severity) {
26
case
INFO
:
return
"INFO"
;
27
case
WARNING
:
return
"WARNING"
;
28
case
ERROR
:
return
"ERROR"
;
29
case
FATAL
:
return
"FATAL"
;
30
case
DFATAL
:
return
"DFATAL"
;
31
default
:
return
"<Unknown severity>"
;
32
}
33
}
34
35
}
// namespace port
36
}
// namespace ion
logging.h
ion::port::INFO
Definition:
logging.h:27
ion::port::LogSeverity
LogSeverity
Definition:
logging.h:26
ion::port::DFATAL
Definition:
logging.h:31
ion::port::ERROR
Definition:
logging.h:29
ion::port::LogEntryWriter::GetSeverityName
const char * GetSeverityName(LogSeverity severity) const
Convenient way to map a severity-code to a printable represenation.
Definition:
logging.cc:24
ion::port::WARNING
Definition:
logging.h:28
ion::port::FATAL
Definition:
logging.h:30
port
logging.cc
Generated by
1.8.6