Sara Logging C# NuGet Package

Sara-Logging is a thread-safe abstract logging framework.

With a pipeline that can feed multiple log writers. Log messages can be processed asynchronously on a background thread, freeing up the producer. Or synchronously on the producer thread, in the case of critical messages. Unhandled exceptions are captured and feed into the pipeline.

The following log Types exist Error, Warning, Trace, Debug, Information, SystemInfo, SystemWarning, and SystemError. '.Config' files are used to configure Log Writers without the need to re-compile. Archiving and Event logging is supported. Each log entry contains ThreadId, TimeStamp, Class, Method, Type, Message, Exception (Optional), Log Type.

Sara.Logging contains 4 Log Writers that implement ILogWriter; FileStreamLogWriter, DebugOutputWriter, ConsoleWriter, and WindowsSystemEventWriter.

DebugOutputWriter directs log messages to the Debug Output. ConsoleWriter directs log messages to the Console styled with color. FileStreamLogWriter stores log messages in a file. Log files are self-maintained based on days old and configured storage.

A User can archive one or more files into a zip for compact storage or remote transfer. WindowsSystemEventWritter sends log messages to the Windows Event Log.

Implement ILogWriter to build your own Writers.




Got any Sara Logging C# Question?





Info

Version: 1.2.9
Author(s): Sara LaFleur
Last Update: Tuesday, October 1, 2019
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/saralafleur/Sara-Logging
NuGet Url: https://www.nuget.org/packages/Sara-Logging


Install
Install-Package Sara-Logging
dotnet add package Sara-Logging
paket add Sara-Logging
Sara-Logging Download (Unzip the "nupkg" after downloading)

.NETStandard 2.0 net48 netcoreapp2.2 3 packages depend on this package.


Tags



STATS

must-have-score

1

avg-downloads-per-day

1

days-since-last-release

1690