Dead-simple colorful logger for C#/.NET Core.
Go to file
2020-11-09 12:57:41 +04:00
assets Add sample screenshot and more info to "Usage" section in README 2020-11-09 12:52:26 +04:00
src/Log4Sharp Update README and csproj: add repository URL and license 2020-11-01 17:21:12 +04:00
.gitignore Add .sln to gitignore 2020-11-09 12:57:41 +04:00
LICENSE Implement basic logger 2020-11-01 16:43:34 +04:00
README.md Fix small typo in README 2020-11-09 12:54:51 +04:00

Log4Sharp

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 one. Mostly inspired by various Golang loggers.

Install

dotnet add package Log4Sharp

Usage

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):

Log.SetLogLevel(LogLevel.Debug); // Allow output of all log levels

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT © ChronosX88