pulsar-client-cpp
|
#include <ConsoleLoggerFactory.h>
Public Member Functions | |
ConsoleLoggerFactory (Logger::Level level=Logger::LEVEL_INFO) | |
Logger * | getLogger (const std::string &fileName) override |
The default LoggerFactory of Client if USE_LOG4CXX
macro was not defined during compilation.
The log format is "yyyy-MM-dd HH:mm:ss,SSS Z <level> <thread-id> <file>:<line> | <msg>", like
It uses std::cout
to prints logs to standard output. You can use this factory class to change your log level simply.
|
overridevirtual |
Create a Logger that is created from the filename
fileName | the filename that is used to construct the Logger |
new
keyword in C++ Implements pulsar::LoggerFactory.