TSG-10804: 支持monitor动作根据DO_LOG字段实现可选的记录非结构化日志

This commit is contained in:
liuxueli
2022-07-01 17:08:16 +08:00
parent 89966c851a
commit 42e2bd020e
7 changed files with 94 additions and 15 deletions

View File

@@ -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

View File

@@ -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;