Ion
 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
LogSeverity
Definition: logging.h:26
const char * GetSeverityName(LogSeverity severity) const
Convenient way to map a severity-code to a printable represenation.
Definition: logging.cc:24