title: Django/Docker/Logging: log files are empty
body: <p>I try to implement logging in my Django project (stack: Django,Docker,Postgresql)</p>
  <p>It work in my dev environnement but not in preproduction (linux/Debian)</p>
  <p>I got no error but files are empty</p>
  <p>I look for permission on files and set chmod 777 to my log files for test but doesn't work neither</p>
  <p>settings.py</p>
  <pre><code>LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'loggers': {
          'django': {
              'handlers':['files_info','files_debug'],
              'propagate': True,
              'level':'INFO',
          },
      },
      'handlers': {
          'files_info': {
              'level': 'INFO',
              'class': 'logging.FileHandler',
              'filename': './logsfiles/info',
              'formatter': 'mereva',
          },
          'files_debug': {
              'level': 'DEBUG',
              'class': 'logging.FileHandler',
              'filename': './logsfiles/debug',
              'formatter': 'mereva',
          },
      },
      'formatters': {
          'mereva': {
              'format': '{levelname} {asctime} {module} {message}',
              'style': '{',
          }
      },
  }
  </code></pre>
  <p>views.py</p>
  <pre><code># Get an instance of a logger
  logger = logging.getLogger('django')
  
  def home(request):
  
      authenticated = request.user.is_authenticated
      if authenticated:
          print('Connected user',request.user)
          logger.info('User :{0}'.format(request.user.username))
  
      return render(request, 'home.html')
  </code></pre>