Add sample screenshot and more info to "Usage" section in README

This commit is contained in:
ChronosX88 2020-11-09 12:52:20 +04:00
parent 81c2aff354
commit c638970f66
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
2 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,8 @@ Dead-simple colorful logger for C#/.NET Core.
I have not found any simple loggers in the .NET Core ecosystem that are not framework-specific and have easy usage, so I decided to write this logger. Mostly inspired by various Golang loggers.
![](./assets/log.png)
## Install
```
@ -15,7 +17,17 @@ dotnet add package Log4Sharp
```c#
using Log4Sharp;
...
Log.Debug("Hello World!");
Log.Info("Hello World!");
Log.Warning("Hello World!");
Log.Error("Hello World!");
Log.Fatal("Hello World!");
```
You can also change log level output filter (by default it's set to `LogLevel.Error`):
```c#
Log.SetLogLevel(LogLevel.Debug); // Allow output of all log levels
```
## Contributing

BIN
assets/log.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB