rbatis / fast_log

Rust async log High-performance asynchronous logging
Apache License 2.0
251 stars 13 forks source link

怎样配置只打印SQL 执行语句,不打印数据输出 #27

Open SnowyThinker opened 1 year ago

SnowyThinker commented 1 year ago

只打印粗体部分,不打印斜体部分

**2020-07-10T21:28:40.073506+08:00 INFO rbatis::rbatis - [rbatis] Query ==> SELECT create_time,delete_flag,h5_banner_img,h5_link,id,name,pc_banner_img,pc_link,remark,sort,status,version FROM biz_activity WHERE delete_flag = ? LIMIT 0,20

2020-07-10T21:28:40.073506+08:00 INFO rbatis::rbatis - [rbatis] Args ==> [1]**

_2020-07-10T21:28:40.076506500+08:00 INFO rbatis::rbatis - [rbatis] Total <== 5


```json
{
    "records": [{
        "id": "12312",
        "name": "null",
        "pc_link": "null",
        "h5_link": "null",
        "pc_banner_img": "null",
        "h5_banner_img": "null",
        "sort": "null",
        "status": 1,
        "remark": "null",
        "create_time": "2020-02-09T00:00:00+00:00",
        "version": 1,
        "delete_flag": 1
    }],
    "total": 5,
    "size": 20,
    "current": 1,
    "serch_count": true
}
```_