what is the best way how Sql statements generated by OrmLite can be logged into a Logging framework like NLog ? I know about the method GetLastSql() on the DbConnection but is there another way?
We want to use OrmLite within the data layer with the possibility of logging all generated sql of a Windows Forms application which has some years and where all the sql is written within the GUI. Performance is an issue so we decided to go with OrmLite (NO context approach)