summaryrefslogtreecommitdiff
path: root/src/system/dlt-system-options.c
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-07-17 16:57:33 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2013-07-25 13:09:09 +0200
commit4dcc75370545070b4037058fcb447cdbe132b701 (patch)
treea3ab3eaf3c5e2787a4ec898031618c8f61e99e90 /src/system/dlt-system-options.c
parentfd6c274685e5fd66506f29dece45032650ce6a92 (diff)
downloadDLT-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.c17
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)