saleem-mirza / serilog-sinks-sqlite

A Serilog sink that writes to SQLite
Apache License 2.0
56 stars 44 forks source link

maxDatabaseSize malfunction due to Delete query in Truncate function #28

Closed aniketb-git closed 4 years ago

aniketb-git commented 4 years ago

When we configure certain maxDatabaseSize then, sink copies current db as new back up db and truncates all logs in current db using DELETE FROM {_tableName} sqlite command in TruncateLog(SQLiteConnection sqlConnection) function in SQLiteSink.cs

But post this still db size remains at max value and after every log write new db is created, creating a lot of non-useful files.