chksum/README.md

61 lines
1.1 KiB
Markdown
Raw Normal View History

2023-05-16 00:39:16 +02:00
# chksum
2023-05-16 00:48:24 +02:00
Checksums every file under the current directory
## Run Locally
Clone the project
```bash
2023-06-23 22:34:00 +02:00
git clone https://gitea.hopeless-cloud.xyz/ProfessionalUwU/chksum.git
2023-05-16 00:48:24 +02:00
```
Go to the project directory
```bash
2023-05-16 19:52:25 +02:00
cd chksum
2023-05-16 00:48:24 +02:00
```
Install dependencies
```bash
2023-05-16 19:52:25 +02:00
pacman -S dotnet-runtime dotnet-sdk
2023-05-16 00:48:24 +02:00
```
Build project
```bash
2023-06-25 16:48:43 +02:00
just build
2023-05-16 00:48:24 +02:00
```
Publish project
```bash
2023-06-25 16:48:43 +02:00
just publish
2023-05-16 00:48:24 +02:00
```
Go to the publish folder
```bash
2023-06-25 16:48:43 +02:00
cd src/Chksum/bin/Release/net7.0/linux-x64/publish
```
2023-05-16 00:48:24 +02:00
Run executable
```bash
2023-06-26 12:58:05 +02:00
./Chksum
2023-06-29 03:58:28 +02:00
```
## 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.