Ion
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Ion
Ion Project Documentation
Ion Users Guide
Todo List
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
logging.h
Go to the documentation of this file.
1
18
#ifndef ION_PORT_LOGGING_H_
19
#define ION_PORT_LOGGING_H_
20
21
#include <string>
22
23
namespace
ion {
24
namespace
port {
25
26
enum
LogSeverity
{
27
INFO
,
28
WARNING
,
29
ERROR
,
30
FATAL
,
31
DFATAL
,
32
};
33
36
class
ION_API
LogEntryWriter
{
37
public
:
38
virtual
~LogEntryWriter
() {}
39
40
virtual
void
Write(
LogSeverity
severity,
const
std::string& message) = 0;
41
42
protected
:
44
const
char
* GetSeverityName(
LogSeverity
severity)
const
;
45
};
46
49
ION_API LogEntryWriter*
CreateDefaultLogEntryWriter
();
50
51
}
// namespace port
52
}
// namespace ion
53
54
#endif // ION_PORT_LOGGING_H_
ion::port::LogEntryWriter
Abstract class which can be overridden to integrate Ion logging with other logging systems...
Definition:
logging.h:36
ion::port::INFO
Definition:
logging.h:27
ion::port::LogSeverity
LogSeverity
Definition:
logging.h:26
ion::port::LogEntryWriter::~LogEntryWriter
virtual ~LogEntryWriter()
Definition:
logging.h:38
ion::port::DFATAL
Definition:
logging.h:31
ion::port::ERROR
Definition:
logging.h:29
ion::port::WARNING
Definition:
logging.h:28
ion::port::FATAL
Definition:
logging.h:30
ion::port::CreateDefaultLogEntryWriter
ION_API LogEntryWriter * CreateDefaultLogEntryWriter()
Instantiate a new LogEntryWriter of the default type for the current platform...
Definition:
logging_android.cc:87
port
logging.h
Generated by
1.8.6