Jeff.Jones.JLogger 1.0.1

A singleton logging component.  Simple to use, lots of flexibility.  Writes to a user-specified log and path, and optionally sends email.

Install-Package Jeff.Jones.JLogger -Version 1.0.1
dotnet add package Jeff.Jones.JLogger --version 1.0.1
<PackageReference Include="Jeff.Jones.JLogger" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jeff.Jones.JLogger --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Version 1.0.0 - Initial unsigned package.
Version 1.0.1 - Signed package, no functionality of API changes.

Documentation - https://www.codeproject.com/Articles/5163318/JLogger-When-You-Care-to-Write-the-Very-Best

JLogger

Overview

JLogger is a singleton component as a .NET Standard 2.0 library component that can be used with any .NET project, whether Core or Standard, on any supported OS to access SQL Server.

JLogger has these characteristics:

  • Multithreaded use – As a singleton, it is accessible from any thread, and uses locking techniques to ensure there are no collisions.
  • High throughput – if the log is being used by many threads concurrently, the log writes do not stop the calling thread. JLogger uses a first-in,
    first-out (FIFO) queue where log writes are put in a queue and written to a file in a separate thread, concurrently in the background. The WriteDebugLog
    command takes the parameters, creates the log data, puts it in a queue. None of those steps are blocking.
  • Send an Email – A debug log write can optionally send an email (SMTP configuration data required)
  • Multiple Log Entry Types – there are several log entry types to choose from. What they each mean is up to the user writing the code. Some log types are
    reserved for the component, and would be ignored in processing the log entry. These are detailed in the README.md file.
  • New Log File each Day – after midnight, a new log file is created so log files are named to show the date and time span the log was active.
  • Log Retention – logs are automatically removed after the specified number of days, unless zero is specified, in which case no log files are deleted.
  • Tab-delimited Log File – the log is written as a tab-delimited file. This enables opening up the file in programs like Excel for analysis.

Version 1.0.0 - Initial unsigned package.
Version 1.0.1 - Signed package, no functionality of API changes.

Documentation - https://www.codeproject.com/Articles/5163318/JLogger-When-You-Care-to-Write-the-Very-Best

JLogger

Overview

JLogger is a singleton component as a .NET Standard 2.0 library component that can be used with any .NET project, whether Core or Standard, on any supported OS to access SQL Server.

JLogger has these characteristics:

  • Multithreaded use – As a singleton, it is accessible from any thread, and uses locking techniques to ensure there are no collisions.
  • High throughput – if the log is being used by many threads concurrently, the log writes do not stop the calling thread. JLogger uses a first-in,
    first-out (FIFO) queue where log writes are put in a queue and written to a file in a separate thread, concurrently in the background. The WriteDebugLog
    command takes the parameters, creates the log data, puts it in a queue. None of those steps are blocking.
  • Send an Email – A debug log write can optionally send an email (SMTP configuration data required)
  • Multiple Log Entry Types – there are several log entry types to choose from. What they each mean is up to the user writing the code. Some log types are
    reserved for the component, and would be ignored in processing the log entry. These are detailed in the README.md file.
  • New Log File each Day – after midnight, a new log file is created so log files are named to show the date and time span the log was active.
  • Log Retention – logs are automatically removed after the specified number of days, unless zero is specified, in which case no log files are deleted.
  • Tab-delimited Log File – the log is written as a tab-delimited file. This enables opening up the file in programs like Excel for analysis.

Release Notes

All requests for support must be sent by email to:
   MSBassSinger@comcast.net
The email MUST havd "JLogger" in the Subject line
You MUST provide details that include code snippets of where the failure occured, and exact failure or exception messages.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 74 7/23/2019
1.0.0 60 7/15/2019