Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::port::LogEntryWriter Class Referenceabstract

Abstract class which can be overridden to integrate Ion logging with other logging systems. More...

#include "logging.h"

Inheritance diagram for ion::port::LogEntryWriter:

Public Member Functions

virtual ~LogEntryWriter ()
 
virtual void Write (LogSeverity severity, const std::string &message)=0
 

Protected Member Functions

const char * GetSeverityName (LogSeverity severity) const
 Convenient way to map a severity-code to a printable represenation. More...
 

Detailed Description

Abstract class which can be overridden to integrate Ion logging with other logging systems.

Definition at line 36 of file logging.h.

Constructor & Destructor Documentation

virtual ion::port::LogEntryWriter::~LogEntryWriter ( )
inlinevirtual

Definition at line 38 of file logging.h.

Member Function Documentation

const char * ion::port::LogEntryWriter::GetSeverityName ( LogSeverity  severity) const
protected

Convenient way to map a severity-code to a printable represenation.

Maps a Severity code to a name for printing.

Definition at line 24 of file logging.cc.

References ion::port::DFATAL, ion::port::ERROR, ion::port::FATAL, ion::port::INFO, and ion::port::WARNING.

Referenced by ion::base::LogChecker::Write().

virtual void ion::port::LogEntryWriter::Write ( LogSeverity  severity,
const std::string &  message 
)
pure virtual

The documentation for this class was generated from the following files: