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

This class is used for regular logging. More...

#include "logging.h"

Public Member Functions

 Logger (const char *file_name, int line_number, port::LogSeverity severity)
 
 ~Logger ()
 
std::ostream & GetStream ()
 Return the stream to which output is sent (or accumulated). More...
 

Static Public Member Functions

static const std::string CheckMessage (const char *check_string, const char *expr_string)
 Returns a message that can be used in CHECK or DCHECK output. More...
 

Detailed Description

This class is used for regular logging.

It sends messages to std::cerr by default, but that can be changed with SetLogEntryWriter(), which is a global override.

Definition at line 73 of file logging.h.

Constructor & Destructor Documentation

ion::base::logging_internal::Logger::Logger ( const char *  file_name,
int  line_number,
port::LogSeverity  severity 
)

Definition at line 105 of file logging.cc.

ion::base::logging_internal::Logger::~Logger ( )

Member Function Documentation

const std::string ion::base::logging_internal::Logger::CheckMessage ( const char *  check_string,
const char *  expr_string 
)
static

Returns a message that can be used in CHECK or DCHECK output.

Definition at line 134 of file logging.cc.

Referenced by ion::base::logging_internal::CheckNotNullCommon().

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

Return the stream to which output is sent (or accumulated).

Definition at line 132 of file logging.cc.


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