Logging format is not informative
One-sentence description
Both logfile logging and console logging are not very informative, for different reasons.
Why?
Because logfile
logging has no format, only the message is printed without any context. logfile
and console
could both use the same logging format.
The %(module)s
logging attribute does not print the fully qualified module name, just the top level name. This would be urls
for the education.urls
package. Instead the %(name)s
attribute could be used, which will give the fully qualified package name when used in conjunction with logging.getLogger(__name__)
(which we do everywhere already).
Furthermore we could drop %(process)d
and %(thread)d
, as we will probably never use those. Lastly, having the log level next to the message would make more sense, as in INFO The message
, because that seems easier to read.