| #include <attn/attn_logging.hpp> |
| |
| #include <iostream> |
| |
| namespace attn |
| { |
| |
| /** @brief Log message of type INFO using stdout */ |
| template <> |
| void trace<INFO>(const char* i_message) |
| { |
| std::cout << "trace: " << i_message << std::endl; |
| } |
| |
| void eventCheckstop(std::map<std::string, std::string>& i_errors) |
| { |
| std::string signature = i_errors.begin()->first; |
| std::string chip = i_errors.begin()->second; |
| |
| std::cout << "event: checkstop, signature = " << signature |
| << ", chip = " << chip << std::endl; |
| } |
| |
| void eventHwDiagsFail(int i_error) |
| { |
| std::cout << "event: hwdiags fail " << i_error << std::endl; |
| } |
| |
| void eventAttentionFail(int i_error) |
| { |
| std::cout << "event: attention fail" << i_error << std::endl; |
| } |
| |
| void eventTerminate(std::map<std::string, std::string> i_additionalData) |
| { |
| std::cout << "event: terminate" << std::endl; |
| |
| std::map<std::string, std::string>::iterator itr; |
| for (itr = i_additionalData.begin(); itr != i_additionalData.end(); ++itr) |
| { |
| std::cout << '\t' << itr->first << '\t' << itr->second << '\n'; |
| } |
| std::cout << std::endl; |
| } |
| |
| void eventVital() |
| { |
| std::cout << "event: vital" << std::endl; |
| } |
| |
| } // namespace attn |