Ion
 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 
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_
Abstract class which can be overridden to integrate Ion logging with other logging systems...
Definition: logging.h:36
LogSeverity
Definition: logging.h:26
virtual ~LogEntryWriter()
Definition: logging.h:38
ION_API LogEntryWriter * CreateDefaultLogEntryWriter()
Instantiate a new LogEntryWriter of the default type for the current platform...