diff options
author | Le-Tin <Tin.Le@vn.bosch.com> | 2021-08-18 07:39:02 +0000 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-10-05 11:19:26 +0900 |
commit | c602c605efba4c47d7c192d17d0debd25348a9d7 (patch) | |
tree | 3202f214201ad9c6cfe3462f8753668a579cf672 /src/shared/dlt_common.c | |
parent | ddfe9b98ad4cd4385882cb2147fe43f7c9058cf1 (diff) | |
download | DLT-daemon-c602c605efba4c47d7c192d17d0debd25348a9d7.tar.gz |
lib: generate dlt library internal log file
Extern logging_mode and logging_handle variables from commom.c
Reusing dlt_log_init() in cases dlt library internal log file is not opened and logging_mode is DLT_LOG_TO_FILE
Signed-off-by: Le-Tin <Tin.Le@vn.bosch.com>
Diffstat (limited to 'src/shared/dlt_common.c')
-rw-r--r-- | src/shared/dlt_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c index 0a122c5..de65201 100644 --- a/src/shared/dlt_common.c +++ b/src/shared/dlt_common.c @@ -77,11 +77,11 @@ char dltShmName[NAME_MAX + 1] = "/dlt-shm"; #endif /* internal logging parameters */ -static int logging_mode = DLT_LOG_TO_CONSOLE; static int logging_level = LOG_INFO; static char logging_filename[NAME_MAX + 1] = ""; -static FILE *logging_handle = NULL; static bool print_with_attributes = false; +int logging_mode = DLT_LOG_TO_CONSOLE; +FILE *logging_handle = NULL; char *message_type[] = { "log", "app_trace", "nw_trace", "control", "", "", "", "" }; char *log_info[] = { "", "fatal", "error", "warn", "info", "debug", "verbose", "", "", "", "", "", "", "", "", "" }; |