diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-10-15 17:45:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2019-10-15 17:45:29 +0000 |
commit | 266c9b1cefb3e33c825e6a994b8bb481654d86d1 (patch) | |
tree | afead1d5151d6ba5031740ac24ae129632744ecb /src/plugins/utilities/logging/Logger.cpp | |
parent | c1de719af7bdae425f2e42dd3e0642550a8cd6b6 (diff) | |
parent | 62f552fe640df18320dd3afb1f141e8a1aedf2f4 (diff) |
Merge "Switch to appcontroller library" into halibuthalibut_8.0.3halibut/8.0.38.0.3
Diffstat (limited to 'src/plugins/utilities/logging/Logger.cpp')
-rw-r--r-- | src/plugins/utilities/logging/Logger.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/utilities/logging/Logger.cpp b/src/plugins/utilities/logging/Logger.cpp index c121556..71c83b6 100644 --- a/src/plugins/utilities/logging/Logger.cpp +++ b/src/plugins/utilities/logging/Logger.cpp @@ -19,11 +19,11 @@ namespace utilities { namespace logging { // Constructor -Logger::Logger(AFB_ApiT api) { +Logger::Logger(afb_api_t api) { mApi = api; } -unique_ptr<Logger> Logger::create(AFB_ApiT api) { +unique_ptr<Logger> Logger::create(afb_api_t api) { auto logger = std::unique_ptr<Logger>(new Logger(api)); return logger; } @@ -32,19 +32,19 @@ void Logger::log(Level level, const std::string& tag, const std::string& message string format_msg = "Tag: " + tag + ", message: " + message; switch (level) { case Level::NOTICE: - AFB_ApiNotice(mApi, format_msg.c_str()); + AFB_API_NOTICE(mApi, format_msg.c_str()); break; case Level::WARNING: - AFB_ApiWarning(mApi, format_msg.c_str()); + AFB_API_WARNING(mApi, format_msg.c_str()); break; case Level::DEBUG: - AFB_ApiDebug(mApi, format_msg.c_str()); + AFB_API_DEBUG(mApi, format_msg.c_str()); break; case Level::ERROR: - AFB_ApiError(mApi, format_msg.c_str()); + AFB_API_ERROR(mApi, format_msg.c_str()); break; case Level::INFO: - AFB_ApiInfo(mApi, format_msg.c_str()); + AFB_API_INFO(mApi, format_msg.c_str()); break; default: break; |