TSG-10804: 支持monitor动作根据DO_LOG字段实现可选的记录非结构化日志
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user