You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{
|
|
|
|
"version": 1,
|
|
|
|
"disable_existing_loggers": false,
|
|
|
|
"formatters": {
|
|
|
|
"default": {
|
|
|
|
"()": "uvicorn.logging.DefaultFormatter",
|
|
|
|
"fmt": "%(asctime)s - %(levelprefix)s %(message)s",
|
|
|
|
"use_colors": null
|
|
|
|
},
|
|
|
|
"access": {
|
|
|
|
"()": "uvicorn.logging.AccessFormatter",
|
|
|
|
"fmt": "%(asctime)s - %(levelprefix)s %(client_addr)s - \"%(request_line)s\" %(status_code)s"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"handlers": {
|
|
|
|
"default": {
|
|
|
|
"formatter": "default",
|
|
|
|
"class": "logging.StreamHandler",
|
|
|
|
"stream": "ext://sys.stderr",
|
|
|
|
"filename": "/var/log/uvicorn.log"
|
|
|
|
},
|
|
|
|
"access": {
|
|
|
|
"formatter": "access",
|
|
|
|
"class": "logging.StreamHandler",
|
|
|
|
"stream": "ext://sys.stdout",
|
|
|
|
"filename": "/var/log/uvicorn.log"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"loggers": {
|
|
|
|
"uvicorn": {
|
|
|
|
"handlers": [
|
|
|
|
"default"
|
|
|
|
],
|
|
|
|
"level": "INFO"
|
|
|
|
},
|
|
|
|
"uvicorn.error": {
|
|
|
|
"level": "INFO"
|
|
|
|
},
|
|
|
|
"uvicorn.access": {
|
|
|
|
"handlers": [
|
|
|
|
"access"
|
|
|
|
],
|
|
|
|
"level": "INFO",
|
|
|
|
"propagate": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|