I have a django application that runs in a docker container. I have a defaults.py file which defines the LOGGING configurations, i have included a file handler in the logging configuration to log to files.
‘file’: {‘class’: ‘logging.FileHandler’,
‘filename’: ‘/opt/tejcli/release/log/temp.log’,
‘formatter’: ‘simple’},
Above piece of code is the file handler that i have included. Unfortunately no logs are being written to the temp.log and not even a file is being created. I have manually created the tejcli/release/log folders. I wrote a python script and put it in home directory and tried writing logs to the same folder and it works. How do i solve this?