summaryrefslogtreecommitdiff
path: root/src/sp_config.h
diff options
context:
space:
mode:
authorThibault "bui" Koechlin2019-08-31 15:32:36 +0200
committerjvoisin2019-08-31 13:32:36 +0000
commit504f02992ace82a5520bc0ca43d9562c077a06e4 (patch)
tree94934cf269abe7a8dbdf0a8bdb4ddb1d51cb4f30 /src/sp_config.h
parentf7e25b29c1cd5273675dbb3d6883c40377d8315d (diff)
Support direct syslog logging
Add the possibility to log directly into the syslog, instead of using php's log system.
Diffstat (limited to 'src/sp_config.h')
-rw-r--r--src/sp_config.h4
1 files changed, 4 insertions, 0 deletions
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 {
28 SP_PHP_TYPE_REFERENCE = IS_REFERENCE 28 SP_PHP_TYPE_REFERENCE = IS_REFERENCE
29} sp_php_type; 29} sp_php_type;
30 30
31typedef enum { SP_ZEND = 0, SP_SYSLOG = 1 } sp_log_media;
32
31typedef struct { 33typedef struct {
32 int ip_version; 34 int ip_version;
33 union { 35 union {
@@ -175,6 +177,7 @@ typedef struct {
175 sp_config_wrapper *config_wrapper; 177 sp_config_wrapper *config_wrapper;
176 sp_config_session *config_session; 178 sp_config_session *config_session;
177 bool hook_execute; 179 bool hook_execute;
180 char log_media;
178 181
179 HashTable *config_disabled_functions; 182 HashTable *config_disabled_functions;
180 HashTable *config_disabled_functions_hooked; 183 HashTable *config_disabled_functions_hooked;
@@ -260,6 +263,7 @@ typedef struct {
260// Global configuration options 263// Global configuration options
261#define SP_TOKEN_ENCRYPTION_KEY ".secret_key(" 264#define SP_TOKEN_ENCRYPTION_KEY ".secret_key("
262#define SP_TOKEN_ENV_VAR ".cookie_env_var(" 265#define SP_TOKEN_ENV_VAR ".cookie_env_var("
266#define SP_TOKEN_LOG_MEDIA ".log_media("
263 267
264// upload_validator 268// upload_validator
265#define SP_TOKEN_UPLOAD_SCRIPT ".script(" 269#define SP_TOKEN_UPLOAD_SCRIPT ".script("