github.com/weedge/lib@v0.0.0-20230424045628-a36dcc1d90e4/log/log.json (about)

     1  {
     2    "logs": [
     3      {
     4        "logger": "main",
     5        "min_level": "debug",
     6        "add_caller": true,
     7        "policy": "filter",
     8        "filters": [
     9          {
    10            "level": "debug,info,warn",
    11            "path": "./log/zap.log"
    12          },
    13          {
    14            "level": "error",
    15            "path": "./log/zap.err.log"
    16          }
    17        ]
    18      },
    19      {
    20        "logger": "access",
    21        "min_level": "info",
    22        "policy": "file",
    23        "path": "./log/zap-access.log"
    24      },
    25      {
    26        "logger": "biz",
    27        "min_level": "info",
    28        "add_caller": true,
    29        "policy": "file",
    30        "path": "./log/zap-biz.log"
    31      },
    32      {
    33        "logger": "panic",
    34        "min_level": "info",
    35        "add_caller": true,
    36        "policy": "file",
    37        "path": "./log/zap-reco.log"
    38      },
    39      {
    40        "logger": "rpc",
    41        "min_level": "info",
    42        "add_caller": true,
    43        "policy": "file",
    44        "path": "./log/zap-rpc.log"
    45      }
    46    ],
    47    "rotateByHour": true
    48  }