Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what's the relationship between "log_config" in uvicorn.run('main:app', host="127.0.0.1", port=8051, log_config="log.ini") and logging.getLogger(__name__)? #32

Open
sanwei111 opened this issue Jun 13, 2024 · 0 comments

Comments

@sanwei111
Copy link

hello,sir.
i wtite a log.ini,pass it for the para of log_config in uvicorn.run('main:app', host="127.0.0.1", port=8051, log_config="log.ini").

besides, i initializes class of logger by:self._logger = logging.getLogger(name) in some file.

i found that the log generated by self._logger can be found in the log file defined by "log_config".

so,question is:

  1. why?
  2. how can i output some dynamic log to the log file formally?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant