I am trying to get NLog to properly log to a SQLite database. I am able to interact with the SQLite database aside from NLog. When I force Internal Logging of NLog, I see the following error:
Error Error initializing target Database Target[db] System.TypeLoadException: Could not load type 'System.Data.SQLite' from assembly 'NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c'.
My NLog configuration has the following parameters:
- dbProvider="System.Data.SQLite" keepConnection="false"
- connectionString="Data Source=${basedir}\Database.s3db;"
- commandText="INSERT into Log(Timestamp, Loglevel, Logger, Callsite, Message) values(@Timestamp, @Loglevel, @Logger, @Callsite, @Message)"
What am I missing?
Aucun commentaire:
Enregistrer un commentaire