diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2013-07-17 16:57:33 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2013-07-25 13:09:09 +0200 |
commit | 4dcc75370545070b4037058fcb447cdbe132b701 (patch) | |
tree | a3ab3eaf3c5e2787a4ec898031618c8f61e99e90 /src/system/dlt-system-options.c | |
parent | fd6c274685e5fd66506f29dece45032650ce6a92 (diff) | |
download | DLT-daemon-4dcc75370545070b4037058fcb447cdbe132b701.tar.gz |
Added options for journal logging.
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/system/dlt-system-options.c')
-rw-r--r-- | src/system/dlt-system-options.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/system/dlt-system-options.c b/src/system/dlt-system-options.c index 1a35adc..a12a36c 100644 --- a/src/system/dlt-system-options.c +++ b/src/system/dlt-system-options.c @@ -140,7 +140,10 @@ void init_configuration(DltSystemConfiguration *config) // Journal config->Journal.Enable = 0; - config->Syslog.ContextId = "JOUR"; + config->Journal.ContextId = "JOUR"; + config->Journal.CurrentBoot = 1; + config->Journal.Follow = 0; + config->Journal.MapLogLevels = 0; // File transfer config->Filetransfer.Enable = 0; @@ -268,6 +271,18 @@ int read_configuration_file(DltSystemConfiguration *config, char *file_name) MALLOC_ASSERT(config->Journal.ContextId); strcpy(config->Journal.ContextId, value); } + else if(strcmp(token, "JournalCurrentBoot") == 0) + { + config->Journal.CurrentBoot = atoi(value); + } + else if(strcmp(token, "JournalFollow") == 0) + { + config->Journal.Follow = atoi(value); + } + else if(strcmp(token, "JournalMapLogLevels") == 0) + { + config->Journal.MapLogLevels = atoi(value); + } // File transfer else if(strcmp(token, "FiletransferEnable") == 0) |