Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::base::logging_internal::NullLogger Class Reference

This class is used to disable logging, while still allowing for log messages to contain '<<' expressions. More...

#include "logging.h"

Public Member Functions

 NullLogger ()
 Constructs a NullLogger that does nothing. More...
 
 NullLogger (port::LogSeverity severity)
 Since NullLogger generally does nothing, the severity is necessary so that it can break on fatal errors. More...
 
 ~NullLogger ()
 
std::ostream & GetStream ()
 Returns the stream to which output is sent. More...
 

Detailed Description

This class is used to disable logging, while still allowing for log messages to contain '<<' expressions.

Fatal messages still call the registered break handler.

Definition at line 93 of file logging.h.

Constructor & Destructor Documentation

ion::base::logging_internal::NullLogger::NullLogger ( )
inline

Constructs a NullLogger that does nothing.

Definition at line 96 of file logging.h.

ion::base::logging_internal::NullLogger::NullLogger ( port::LogSeverity  severity)
explicit

Since NullLogger generally does nothing, the severity is necessary so that it can break on fatal errors.

Definition at line 123 of file logging.cc.

ion::base::logging_internal::NullLogger::~NullLogger ( )
inline

Definition at line 101 of file logging.h.

Member Function Documentation

std::ostream & ion::base::logging_internal::NullLogger::GetStream ( )

Returns the stream to which output is sent.

Definition at line 127 of file logging.cc.


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