SSP21-CPP
Classes | Public Member Functions | Public Attributes | List of all members
log4cpp::MockLogHandler Class Reference

Public Member Functions

 MockLogHandler (const std::string &id, LogLevels levels=LogLevels::everything())
 
void print_output ()
 
virtual void log (ModuleId module, const char *id, LogLevel level, char const *location, char const *message) override
 
template<typename... Args>
void expect (const std::string &expected, const Args &... args)
 
void expect ()
 

Public Attributes

log4cpp::Logger logger
 

Detailed Description

Definition at line 38 of file MockLogHandler.h.

Member Function Documentation

◆ log()

virtual void log4cpp::MockLogHandler::log ( ModuleId  module,
const char *  id,
LogLevel  level,
char const *  location,
char const *  message 
)
inlineoverridevirtual

Callback method for log messages

Parameters
moduleModuleId of the logger
idstring id of the logger
levelbitfield LogLevel of the logger
locationlocation in the source of the log call
messagemessage of the log call

Implements log4cpp::ILogHandler.

Definition at line 67 of file MockLogHandler.h.