TSLAppLogger 3.1.0

dotnet add package TSLAppLogger --version 3.1.0
                    
NuGet\Install-Package TSLAppLogger -Version 3.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TSLAppLogger" Version="3.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TSLAppLogger" Version="3.1.0" />
                    
Directory.Packages.props
<PackageReference Include="TSLAppLogger" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TSLAppLogger --version 3.1.0
                    
#r "nuget: TSLAppLogger, 3.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TSLAppLogger@3.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TSLAppLogger&version=3.1.0
                    
Install as a Cake Addin
#tool nuget:?package=TSLAppLogger&version=3.1.0
                    
Install as a Cake Tool

TSLAppLogger

A 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.


๐Ÿš€ Quick Start

Install via NuGet

Install-Package TSLAppLogger
dotnet add package TSLAppLogger

๐Ÿ“ฆ Package Information

  • Package Name: TSLAppLogger
  • Version: 3.1
  • Target Framework: .NET Framework 4.8

โœจ Key Features

  • Asynchronous, non-blocking logging
  • Logger APIs never throw exceptions
  • Safe for Windows Services and always-on systems
  • File-based logging with automatic fallback
  • Windows Event Log support for critical failures
  • Emergency logging when file logging is unavailable
  • Service lifecycle logging (start / stop / fatal)
  • Minimal CPU and memory overhead

๐Ÿง  Design Philosophy

TSLAppLogger is designed for worst-case production scenarios:

  • Logging failures are silently handled
  • Application execution is never interrupted
  • Safe to use in:
    • try / catch blocks
    • Startup code
    • Shutdown paths
    • Crash handling logic

๐Ÿงฉ Initialization

Initialize the logger once during application or service startup.

TSLAppLogger.Initialize();

Notes

  • Safe to call multiple times
  • Does not block
  • Does not throw exceptions

๐Ÿ“ Writing Logs

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:

  • Are asynchronous
  • Never throw
  • Never block the calling thread

๐Ÿงฏ Logging Exceptions

Logging exceptions is safe and recommended.

try
{
    ProcessRequest();
}
catch (Exception ex)
{
    TSLAppLogger.Error("Unhandled exception occurred", ex);
}
  • Full exception details are logged
  • Application flow is never affected

๐ŸชŸ Windows Service Usage

TSLAppLogger is optimized for Windows Services.

Service Start

protected override void OnStart(string[] args)
{
    TSLAppLogger.Initialize();
    TSLAppLogger.Info("Service started");
}

Service Stop

protected override void OnStop()
{
    TSLAppLogger.Info("Service stopped");
}

Fatal Service Error

catch (Exception ex)
{
    TSLAppLogger.Fatal("Service crashed", ex);
}

๐Ÿชต Log Output

Default Locations

  • Application Logs

    • Standard operational logs
  • ServiceEventLogs

    • Service lifecycle events
    • Emergency and fallback logs
    • Fatal failures

Each entry includes:

  • Timestamp
  • Machine name
  • Process ID

Directories are created automatically if missing.


๐ŸชŸ Windows Event Log

For critical scenarios, logs may also be written to the Windows Event Log:

  • Service startup failures
  • Fatal runtime errors
  • Emergency fallback conditions

Event log writes are safe and non-blocking.


๐Ÿ›ก๏ธ Reliability Guarantees

  • Logger never throws exceptions
  • Logging failures never stop the application
  • Automatic fallback when file logging fails
  • Safe during startup, runtime, and shutdown

Logging will never be the reason your application fails.


โš™๏ธ Performance

  • Fully asynchronous
  • Minimal locking
  • Low memory allocation
  • Safe for high-throughput, multi-threaded systems

  • Windows Services
  • Telecom and network systems
  • Background workers
  • Long-running backend processes
  • Mission-critical production applications

๐Ÿงพ Summary

TSLAppLogger is a production-first logging library focused on:

  • Stability
  • Predictability
  • Safety

If your system must stay online no matter what, TSLAppLogger is built for that.

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.0 98 2/9/2026
3.0.0 94 1/30/2026
2.2.0 94 1/28/2026
2.1.0 97 1/27/2026
2.0.0 90 1/21/2026
1.0.4 93 1/12/2026
1.0.3 96 1/9/2026
1.0.2 90 1/9/2026
1.0.1 96 1/9/2026
1.0.0 92 1/9/2026