Currently logging is configured within the library itself. This isn't a good practice.
We can have a central logging configuration to be used in scripts, cli, and tests, but the setup of that logging should not infect the rest of our application.
Requirements:
for tests:
there should be a log file per test in the logs directory and the log level should be set to DEBUG
for scripts (script, ctl_script, _cli):
set log level to debug based on environment variable
create file handler and default formatter
for library
do not propagate by default
null handler
For now, don't worry about loading time for the logging module, or anything like request-specific logging (server using the logging configured by the client for the duration of the request handling).
Currently logging is configured within the library itself. This isn't a good practice.
We can have a central logging configuration to be used in scripts, cli, and tests, but the setup of that logging should not infect the rest of our application.
Requirements:
For now, don't worry about loading time for the
logging
module, or anything like request-specific logging (server using the logging configured by the client for the duration of the request handling).