title: How to do logging of C# Console application using EL 6.0
body: <p>Can any one let me know how to implement logging with <em>Enterprise Library 6.0</em> in C#. I want to do logging in Database, if it is available otherwise log the exceptions , information, messages into LOG file.<br>
  Can anyone tell me  How to implement logging into Db, otherwise log in file dynamically.<br>
  I will have both logging DB and file config changes in <code>App.config</code>/<code>Web.config</code>.<br>
  So please help me on this how to implement logging dynamically based on runtime value:
  <em>If Db is available and accessible, then log, otherwise if DB is not accessible, then log to Log-file or event-viewer.</em> </p>