Public Member Functions | List of all members
stan::callbacks::logger Class Reference

#include "stan/callbacks/logger.hpp"

Inheritance diagram for stan::callbacks::logger:
stan::callbacks::stream_logger stan::test::unit::instrumented_logger

Public Member Functions

virtual ~logger ()
 
virtual void debug (const std::string &message)
 
virtual void debug (const std::stringstream &message)
 
virtual void info (const std::string &message)
 
virtual void info (const std::stringstream &message)
 
virtual void warn (const std::string &message)
 
virtual void warn (const std::stringstream &message)
 
virtual void error (const std::string &message)
 
virtual void error (const std::stringstream &message)
 
virtual void fatal (const std::string &message)
 
virtual void fatal (const std::stringstream &message)
 

Detailed Description

The logger class defines the callback used by Stan's algorithms to log messages in the interfaces. The base class can be used as a no-op implementation.

These are the logging levels used by logger, in order:

  1. debug
  2. info
  3. warn
  4. error
  5. fatal

Definition at line 24 of file logger.hpp.

Constructor & Destructor Documentation

virtual stan::callbacks::logger::~logger ( )
inlinevirtual

Definition at line 26 of file logger.hpp.

26 {}

Member Function Documentation

virtual void stan::callbacks::logger::debug ( const std::string message)
inlinevirtual

Logs a message with debug log level

Parameters
[in]messagemessage

Reimplemented in stan::test::unit::instrumented_logger, and stan::callbacks::stream_logger.

Definition at line 33 of file logger.hpp.

Referenced by TEST_F().

33 { }
virtual void stan::callbacks::logger::debug ( const std::stringstream &  message)
inlinevirtual

Logs a message with debug log level.

Parameters
[in]messagemessage

Reimplemented in stan::test::unit::instrumented_logger, and stan::callbacks::stream_logger.

Definition at line 40 of file logger.hpp.

40 { }
virtual void stan::callbacks::logger::error ( const std::string message)
inlinevirtual
virtual void stan::callbacks::logger::error ( const std::stringstream &  message)
inlinevirtual

Logs an error with error log level.

Parameters
[in]messagemessage

Reimplemented in stan::test::unit::instrumented_logger, and stan::callbacks::stream_logger.

Definition at line 82 of file logger.hpp.

82 { }
virtual void stan::callbacks::logger::fatal ( const std::string message)
inlinevirtual

Logs an error with fatal log level.

Parameters
[in]messagemessage

Reimplemented in stan::test::unit::instrumented_logger, and stan::callbacks::stream_logger.

Definition at line 89 of file logger.hpp.

Referenced by TEST_F().

89 { }
virtual void stan::callbacks::logger::fatal ( const std::stringstream &  message)
inlinevirtual

Logs an error with fatal log level.

Parameters
[in]messagemessage

Reimplemented in stan::test::unit::instrumented_logger, and stan::callbacks::stream_logger.

Definition at line 96 of file logger.hpp.

96 { }
virtual void stan::callbacks::logger::info ( const std::string message)
inlinevirtual
virtual void stan::callbacks::logger::info ( const std::stringstream &  message)
inlinevirtual

Logs a message with info log level.

Parameters
[in]messagemessage

Reimplemented in stan::test::unit::instrumented_logger, and stan::callbacks::stream_logger.

Definition at line 54 of file logger.hpp.

54 { }
virtual void stan::callbacks::logger::warn ( const std::string message)
inlinevirtual

Logs a message with warn log level.

Parameters
[in]messagemessage

Reimplemented in stan::test::unit::instrumented_logger, and stan::callbacks::stream_logger.

Definition at line 61 of file logger.hpp.

Referenced by TEST_F().

61 { }
virtual void stan::callbacks::logger::warn ( const std::stringstream &  message)
inlinevirtual

Logs a message with warn log level.

Parameters
[in]messagemessage

Reimplemented in stan::test::unit::instrumented_logger, and stan::callbacks::stream_logger.

Definition at line 68 of file logger.hpp.

68 { }

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