feature/logging #3

Merged
ProfessionalUwU merged 2 commits from feature/logging into main 2023-06-29 19:01:40 +02:00
Showing only changes of commit e99ca810f6 - Show all commits

View File

@ -43,4 +43,19 @@ Run executable
```bash
./Chksum
```
```
## Enabling verbose output for troubleshooting
1. Open the file called chksum.cs with your editor of choice.
2. At the top there will be the logger configuration which you can change. Should look like this.
```cs
private ILogger logger = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.Console(restrictedToMinimumLevel: LogEventLevel.Error)
.WriteTo.File("chksum.log")
.CreateLogger();
```
3. Change the minimum level of the logger to Verbose.
4. Compile the program
5. Profit. Now you will be able to see how what the program is doing in detail.