From 6ea4278a512bc9f1f816844222e65a4ea670db8e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 24 Oct 2025 23:50:18 +0200 Subject: feat(log): add the possibility to log to a file --- src/sp_config.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/sp_config.h') diff --git a/src/sp_config.h b/src/sp_config.h index 6bfb009..8886bc6 100644 --- a/src/sp_config.h +++ b/src/sp_config.h @@ -19,10 +19,15 @@ typedef enum { SP_PHP_TYPE_REFERENCE = IS_REFERENCE } sp_php_type; -typedef enum { SP_LOG_ZEND = 0, SP_LOG_SYSLOG = 1 } sp_log_media; typedef enum { SP_INI_UNSET = 0, SP_INI_READONLY = 1, SP_INI_READWRITE = -1 } sp_ini_permission; +typedef enum { SP_LOG_ZEND = 0, SP_LOG_SYSLOG = 1, SP_LOG_FILE = 2 } sp_log_media_type; +typedef struct { + sp_log_media_type type; + char* path; +} sp_config_log; + typedef struct { int ip_version; union { -- cgit v1.3