TSLAppLogger is a high-performance, asynchronous logging library for .NET Framework 4.8, designed for telecom, Windows services, and high-throughput server applications. It provides non-blocking background logging, automatic file rotation and retention, structured logging with key-value pairs, optional JSON output, Windows Event Log support, and fail-safe diagnostics suitable for long-running production services.
$ dotnet add package TSLAppLoggerA production-safe, non-blocking logging library for .NET Framework 4.8, designed for Windows Services, * telecom systems*, and long-running backend applications.
TSLAppLogger is built with one rule above all others:
Logging must never impact application stability.
Install-Package TSLAppLogger
dotnet add package TSLAppLogger
TSLAppLogger is designed for worst-case production scenarios:
Initialize the logger once during application or service startup.
TSLAppLogger.Initialize();
TSLAppLogger.Debug("Debug message");
TSLAppLogger.Info("Application started");
TSLAppLogger.Warn("Configuration file missing, using defaults");
TSLAppLogger.Error("Operation failed");
TSLAppLogger.Fatal("Critical failure");
All logging calls:
Logging exceptions is safe and recommended.
try
{
ProcessRequest();
}
catch (Exception ex)
{
TSLAppLogger.Error("Unhandled exception occurred", ex);
}
TSLAppLogger is optimized for Windows Services.
protected override void OnStart(string[] args)
{
TSLAppLogger.Initialize();
TSLAppLogger.Info("Service started");
}
protected override void OnStop()
{
TSLAppLogger.Info("Service stopped");
}
catch (Exception ex)
{
TSLAppLogger.Fatal("Service crashed", ex);
}
Application Logs
ServiceEventLogs
Each entry includes:
Directories are created automatically if missing.
For critical scenarios, logs may also be written to the Windows Event Log:
Event log writes are safe and non-blocking.
Logging will never be the reason your application fails.
TSLAppLogger is a production-first logging library focused on:
If your system must stay online no matter what, TSLAppLogger is built for that.