From 504f02992ace82a5520bc0ca43d9562c077a06e4 Mon Sep 17 00:00:00 2001 From: Thibault "bui" Koechlin Date: Sat, 31 Aug 2019 15:32:36 +0200 Subject: Support direct syslog logging Add the possibility to log directly into the syslog, instead of using php's log system.--- src/sp_config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sp_config.h') diff --git a/src/sp_config.h b/src/sp_config.h index 9d58359..b06e8be 100644 --- a/src/sp_config.h +++ b/src/sp_config.h @@ -28,6 +28,8 @@ typedef enum { SP_PHP_TYPE_REFERENCE = IS_REFERENCE } sp_php_type; +typedef enum { SP_ZEND = 0, SP_SYSLOG = 1 } sp_log_media; + typedef struct { int ip_version; union { @@ -175,6 +177,7 @@ typedef struct { sp_config_wrapper *config_wrapper; sp_config_session *config_session; bool hook_execute; + char log_media; HashTable *config_disabled_functions; HashTable *config_disabled_functions_hooked; @@ -260,6 +263,7 @@ typedef struct { // Global configuration options #define SP_TOKEN_ENCRYPTION_KEY ".secret_key(" #define SP_TOKEN_ENV_VAR ".cookie_env_var(" +#define SP_TOKEN_LOG_MEDIA ".log_media(" // upload_validator #define SP_TOKEN_UPLOAD_SCRIPT ".script(" -- cgit v1.3