title: Django logging-log message is not saved in respective file !
body: <p>I am newbie to django...Am learning Django-logging concept now..my problem is that log messages will not saved in the file that i have used in my code below,</p>
  
  <p>(In my settings.py)   </p>
  
  <pre><code>LOGGING = {
  'version': 1,
  'disable_existing_loggers': False,
  'formatters': {
      'simple': {
          'format': '%(asctime)s %(levelname)s %(name)s %(message)s'
      },
  },
  'handlers': {
      'default': {
          'level':'DEBUG',
          'class':'logging.handlers.RotatingFileHandler',
          'filename': '/home/linuxuser/mani/f/logs/msg.log',
          'maxBytes': 1024*1024*5, # 5 MB
          'backupCount': 5,
          'formatter':'simple',
      },
  },
  'loggers': {
      'sample': {
          'handlers': ['default'],
          'level': 'DEBUG',
          'propagate': True,
      },
  }
  </code></pre>
  
  <p>}</p>
  
  <p>(In my views.py)   </p>
  
  <pre><code>import logging   
  import logging.handlers   
  from django.conf import settings   
  logger = logging.getLogger('sample')   
  
  def empdel(request,id):   
      e = get_object_or_404(emp, pk=id)   
      e.delete()   
      logger.info('A row is deleted successfully !!!') [# here is my prob..this msg is not saved in '/home/linuxuser/mani/f/logs/msg.log' #]
  
      return HttpResponseRedirect('/empthanks/')   
  </code></pre>
  
  <p>Dono why the log message is not saved in that file..Pls anyone give me the solution even it is so simple..Whats wrong here??</p>
  
  <p>Thanks in advance..<br>
  Mani</p>