Skip to main content

Posts

Showing posts from 2020

How to use SQLite Logger

First of all, you should know that this Logger is suitable for projects using .Net framework 4.7.2+ This logger consists of two Nuget Packages,  SQLiteLogger  and  SQLiteLoggerViewer . This is mainly to fit project's structure as SQLiteLoggerViewer will be included in Application Layer and SQLiteLogger will be included in Application or Business Layer. SQLiteLogger The main Logger which used to log messages. To use it follow these steps: Install  SQLiteLogger  Nuget Package. Download log file from this  link . In your configuration file (web.config) please add the following App settings: LiteLogFilePath: Path of Log file that you downloaded with respect to project folder. Make sure to add this key to avoid exceptions. <add key="LiteLogFilePath" value="<Path-to-log-file>"/> LiteLogLevel: Level of logs you want to be logged. You may choose [All-Info-Warn-Debug-Error]. Make sure to add this key as the logger will not log anything in ca