title: Combining NLog with SQLite and WPF control
body: <p>I'm using NLog and SQLite in my C# WPF application, and the NLog config is set up with the SQLite database as a target.  And logging to the SQLite database works fine.</p>
  
  <p>Now I want to present (some of) the log messages in a <code>ListView</code> (or similar), i.e. place log messages in a <code>ObservableCollection</code> that the control can bind to.  I want to show the messages as they are logged, but also have possibility to filter messages on timestamp, log level, key words in log message, etc.  What would be a good approach for doing this?</p>
  
  <p>I thought about writing a custom NLog target that puts entries in a <code>ObservableCollection</code>.  But that will perhaps make it difficult to add filter functionality.  Another possibility is perhaps to monitor changes in the SQLite database in some way, read back the changes and update the <code>ObservableCollection</code>.</p>