pulsar-client-cpp
|
#include <FileLoggerFactory.h>
Public Member Functions | |
FileLoggerFactory (Logger::Level level, const std::string &logFilePath) | |
pulsar::Logger * | getLogger (const std::string &filename) override |
A logger factory that is appending logs to a single file.
The log format is "yyyy-MM-dd HH:mm:ss,SSS Z <level> <thread-id> <file>:<line> | <msg>", like
Example:
pulsar::FileLoggerFactory::FileLoggerFactory | ( | Logger::Level | level, |
const std::string & | logFilePath | ||
) |
Create a FileLoggerFactory instance.
level | the log level |
logFilePath | the log file's path |
|
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.