16 #ifndef LEX_COMMON_TEST__TEST_LOGGER_H_ 17 #define LEX_COMMON_TEST__TEST_LOGGER_H_ 21 #include <aws/core/utils/logging/LogSystemInterface.h> 22 #include <aws/core/utils/logging/AWSLogging.h> 23 #include <aws/core/utils/logging/LogLevel.h> 46 explicit TestLogSystem(Aws::Utils::Logging::LogLevel log_level = LogLevel::Trace)
52 void LogData(
const char * log_level,
const char * tag,
const std::string & message)
54 std::cout <<
"<" << log_level <<
", " << tag <<
">: " << message << std::endl;
56 void LogTrace(
const char * tag,
const std::string & message)
override 58 LogData(
"Trace", tag, message);
60 void LogInfo(
const char * tag,
const std::string & message)
override 62 LogData(
"Info", tag, message);
64 void LogDebug(
const char * tag,
const std::string & message)
override 66 LogData(
"Debug", tag, message);
68 void LogWarn(
const char * tag,
const std::string & message)
override 70 LogData(
"Warn", tag, message);
72 void LogError(
const char * tag,
const std::string & message)
override 74 LogData(
"Error", tag, message);
76 void LogFatal(
const char * tag,
const std::string & message)
override 78 LogData(
"Fatal", tag, message);
86 #endif // LEX_COMMON_TEST__TEST_LOGGER_H_ void LogTrace(const char *tag, const std::string &message) override
void LogDebug(const char *tag, const std::string &message) override
void LogInfo(const char *tag, const std::string &message) override
void LogError(const char *tag, const std::string &message) override
void LogData(const char *log_level, const char *tag, const std::string &message)
void LogFatal(const char *tag, const std::string &message) override
TestLogSystem(Aws::Utils::Logging::LogLevel log_level=LogLevel::Trace)
void LogWarn(const char *tag, const std::string &message) override