Lines in log file do not contain the name of the module they originated from.
Adding a getLogger(__name__) to each module file will fix this. The important thing is to make sure these module loggers inherit the settings from the root logger configured in settings.py
Lines in log file do not contain the name of the module they originated from.
Adding a
getLogger(__name__)
to each module file will fix this. The important thing is to make sure these module loggers inherit the settings from the root logger configured insettings.py