title: How to check if NLog writing to database
body: <p>In our application, we are using nlog for log management. We are writing the log in both text files and databases. In some cases, the log is getting written in the text file, but not in the database. I doubt it is due to some problem while setting the connection string dynamically. How can I debug that? Is there a way to write the sql queries and responses generated by NLog in a console? Also let me know if there is some work around for this.</p>