From 216ab4260fa05795564766ab3ea0f3020d036fd3 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Mon, 2 Dec 2013 13:35:30 +0100 Subject: Environement variables added to configure internal logging in library. Signed-off-by: Alexander Wenzel --- include/dlt/dlt_common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/dlt/dlt_common.h') diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index 7f205c9..0740c9e 100755 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -174,6 +174,13 @@ #define LOG_DAEMON (3<<3) #endif +enum { + DLT_LOG_TO_CONSOLE=0, + DLT_LOG_TO_SYSLOG=1, + DLT_LOG_TO_FILE=2, + DLT_LOG_DROPPED=3 +}; + /** * The standard TCP Port used for DLT daemon */ @@ -1232,6 +1239,11 @@ extern "C" */ int dlt_message_argument_print(DltMessage *msg,uint32_t type_info,uint8_t **ptr,int32_t *datalength,char *text,int textlength,int byteLength,int verbose); + /** + * Check environment variables. + */ + void dlt_check_envvar(); + #ifdef __cplusplus } #endif -- cgit v1.2.1