diff options
| author | liuxueli <[email protected]> | 2022-07-01 17:08:16 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2022-07-01 17:08:16 +0800 |
| commit | 42e2bd020e1c18417a5635cfb3d67be348091ad2 (patch) | |
| tree | 8b3bb785541ef8a06e1ceeb2e646612bd1767b10 /inc | |
| parent | 89966c851a84df62036588bae508c9ec713d6f0d (diff) | |
TSG-10804: 支持monitor动作根据DO_LOG字段实现可选的记录非结构化日志v5.7.4
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/tsg_label.h | 16 | ||||
| -rw-r--r-- | inc/tsg_send_log.h | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/inc/tsg_label.h b/inc/tsg_label.h index 6ce52cd..51fb96e 100644 --- a/inc/tsg_label.h +++ b/inc/tsg_label.h @@ -165,4 +165,20 @@ struct application_behavior char *stream_behavior; }; +struct http_s3_file +{ + char *request_filename; + char *response_filename; +}; + +struct business_notify_data +{ + tsg_protocol_t proto; //enum _tsg_protocol (tsg_types.h) + union + { + struct http_s3_file *s3_http; + void *pdata; + }; +}; + #endif diff --git a/inc/tsg_send_log.h b/inc/tsg_send_log.h index e0f3abf..e65d433 100644 --- a/inc/tsg_send_log.h +++ b/inc/tsg_send_log.h @@ -7,6 +7,14 @@ #define PRINTADDR(a, b) ((b)<RLOG_LV_FATAL ? printaddr(&(a->addr), a->threadnum) : "") #endif +enum DO_LOG +{ + LOG_ABORT=0, + LOG_ALL=1, + LOG_NOFILE=2, +}; + + typedef struct _tsg_log { int result_num; |
