diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2015-12-10 10:35:24 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2015-12-10 10:35:24 +0300 |
commit | 6d09c324953c3bb12a7ae758fa870e44fa52fed6 (patch) | |
tree | 008d7b33cfee91d43f08b83ecedc3d2b206b2bbf /include/log.h | |
parent | 53b340e6f158586f79b8f9b4a20ee1253ab15ec6 (diff) |
...G...PS. [ZBXNEXT-611] added support of running zabbix services in foreground
Diffstat (limited to 'include/log.h')
-rw-r--r-- | include/log.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h index b3cc92c838f..993b2754383 100644 --- a/include/log.h +++ b/include/log.h @@ -32,6 +32,12 @@ #define LOG_TYPE_UNDEFINED 0 #define LOG_TYPE_SYSLOG 1 #define LOG_TYPE_FILE 2 +#define LOG_TYPE_CONSOLE 3 + +#define ZBX_OPTION_LOGTYPE_UNDEFINED "undefined" +#define ZBX_OPTION_LOGTYPE_SYSLOG "syslog" +#define ZBX_OPTION_LOGTYPE_FILE "file" +#define ZBX_OPTION_LOGTYPE_CONSOLE "console" typedef enum { @@ -78,3 +84,7 @@ void zbx_redirect_stdio(const char *filename); void zbx_handle_log(void); #endif + +int zbx_get_log_type(const char *logtype); +int zbx_validate_log_parameters(ZBX_TASK_EX *task); + |