-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
72 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#### This is a sample logging configuration for the API. #### | ||
version: 1 | ||
disable_existing_loggers: True | ||
formatters: | ||
default: | ||
(): 'uvicorn.logging.DefaultFormatter' | ||
fmt: '%(asctime)s %(levelprefix)-9s %(name)s -: %(message)s' | ||
use_colors: False | ||
access: | ||
(): 'uvicorn.logging.AccessFormatter' | ||
fmt: '%(asctime)s %(levelprefix)-9s %(name)s -: %(client_addr)s - "%(request_line)s" %(status_code)s' | ||
use_colors: False | ||
error: | ||
(): 'uvicorn.logging.DefaultFormatter' | ||
fmt: '%(asctime)s %(levelprefix)-9s %(name)s -: %(message)s' | ||
use_colors: False | ||
handlers: | ||
default: | ||
class: logging.FileHandler # Can be changed to StreamHandler for stdout logging | ||
formatter: default | ||
filename: default.log | ||
access: | ||
class: logging.FileHandler # Can be changed to StreamHandler for stdout logging | ||
formatter: access | ||
filename: access.log | ||
error: | ||
class: logging.FileHandler # Can be changed to StreamHandler for stdout logging | ||
formatter: error | ||
filename: default.log | ||
loggers: | ||
uvicorn: | ||
propagate: True | ||
level: INFO | ||
handlers: | ||
- default | ||
uvicorn.error: | ||
propagate: True | ||
level: INFO | ||
handlers: | ||
- error | ||
uvicorn.access: | ||
propagate: True | ||
level: INFO | ||
handlers: | ||
- access |