Add instructions for verbose output
This commit is contained in:
parent
184e525adb
commit
e99ca810f6
15
README.md
15
README.md
@ -44,3 +44,18 @@ Run executable
|
|||||||
```bash
|
```bash
|
||||||
./Chksum
|
./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.
|
Loading…
x
Reference in New Issue
Block a user