diff --git a/README.md b/README.md index 703e1b3..4f30891 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/assets/log.png b/assets/log.png new file mode 100644 index 0000000..c86fcea Binary files /dev/null and b/assets/log.png differ