Return the corresponding formatter
| 52 | |
| 53 | // Return the corresponding formatter |
| 54 | DefaultLogger::Formatter* DefaultLogger::getFormatter(Format format) const { |
| 55 | |
| 56 | auto it = mFormatters.find(format); |
| 57 | if (it != mFormatters.end()) { |
| 58 | return it->second; |
| 59 | } |
| 60 | |
| 61 | return nullptr; |
| 62 | } |
| 63 | |
| 64 | // Add a log file destination to the logger |
| 65 | void DefaultLogger::addFileDestination(const std::string& filePath, uint logLevelFlag, Format format) { |