diff options
author | Martin Koch <mkoch@de.adit-jv.com> | 2020-01-14 14:48:54 +0100 |
---|---|---|
committer | Martin Koch <mkoch@de.adit-jv.com> | 2020-01-14 15:27:26 +0100 |
commit | 56b7b1883c354b78ab6cff5739ddd2f170603324 (patch) | |
tree | 6f95ae6a3cc298633b9af7e5a7d3febbba5dbd35 /AudioManagerDaemon | |
parent | e0c47ec1fd95abbc5f8f32f9d9968dfbd02b0999 (diff) | |
download | audiomanager-56b7b1883c354b78ab6cff5739ddd2f170603324.tar.gz |
AM: Reorganize daemon, core, utilities and tests to make use of the new logging architecture.
- Known side-effect: CAmSerializer.h and TAmPluginTemplate.h no longer indirectly include
dlt_user.h. Thus macros like DLT_DECLARE_CONTEXT and DLT_IMPORT_CONTEXT
may be undefined in application code unless CAmDltWrapper.h or dlt_user.h is included explicitly.
- Since the DLT functionality is now encapsulated inside a dedicated class, such declaration is
usually superfluous and can be dropped.
Signed-off-by: Martin Koch <mkoch@de.adit-jv.com>
Diffstat (limited to 'AudioManagerDaemon')
-rw-r--r-- | AudioManagerDaemon/src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/AudioManagerDaemon/src/main.cpp b/AudioManagerDaemon/src/main.cpp index 1567265..dc4bae0 100644 --- a/AudioManagerDaemon/src/main.cpp +++ b/AudioManagerDaemon/src/main.cpp @@ -55,7 +55,7 @@ #include "CAmRoutingReceiver.h" #include "CAmCommandReceiver.h" #include "CAmControlReceiver.h" -#include "CAmDltWrapper.h" +#include "CAmLogWrapper.h" #include "CAmSocketHandler.h" #include "CAmCommandLineSingleton.h" #include "CAmDatabaseHandlerMap.h" @@ -244,7 +244,9 @@ void mainProgram(int argc, char *argv[]) daemonize(); } - CAmDltWrapper::instanctiateOnce(AUDIOMANGER_APP_ID, AUDIOMANGER_APP_DESCRIPTION, dltEnable.getValue(), static_cast<am::CAmDltWrapper::logDestination>(dltOutput.getValue()), dltLogFilename.getValue()); + CAmLogWrapper::instantiateOnce(AUDIOMANGER_APP_ID, AUDIOMANGER_APP_DESCRIPTION + , dltEnable.getValue() ? LS_ON : LS_OFF, static_cast<am::am_LogService_e>(dltOutput.getValue()) + , dltLogFilename.getValue()); // Instantiate all classes. Keep in same order ! CAmSocketHandler iSocketHandler; |