title: python logging to database
body: <p>I'm seeking a way to let the python logger module to log to database and falls back to file system when the db is down.</p>
  
  <p>So basically 2 things: How to let the logger log to database and how to make it fall to file logging when the db is down.</p>