A small logger for big projects.
Installation and usage under Get started.
Check out the documentation!
- Fast and easy to use
- No setup required
- Easy to customize
Outputs are used to display, pass or store your log messages. Sharplog can write to one ore multiple outputs.
Some outputs are already provided out-of-the-box:
-
💻Print your logs to the standard console including color coding!
-
📂Store your logs in a log file without blocking the file!
-
📮Send your logs via email!
SharpLog.Logging.LogDebug("Debug!");
SharpLog.Logging.LogTrace("Trace!");
SharpLog.Logging.LogInfo("Info!");
SharpLog.Logging.LogWarning("Warning!");
SharpLog.Logging.LogError("Error!");
SharpLog.Logging.LogFatal( //🚪Exits program after logging your message.
"Fatal!",
exception: new Exception("Test"),
stackTrace: true);