/* */ #ifndef D_LOG_FORMATTER_H #define D_LOG_FORMATTER_H #include "common.h" #include #include #include #include "Logger.h" namespace aria2 { class Exception; class LogFormatter { public: virtual ~LogFormatter() {} virtual void writeLog (std::ostream& o, Logger::LEVEL logLevel, const std::string& logLevelLabel, const char* msg, va_list ap) = 0; virtual void writeStackTrace (std::ostream& o, Logger::LEVEL logLevel, const std::string& logLevelLabel, const Exception& ex) = 0; }; } // namespace aria2 #endif // D_LOG_FORMATTER_H