Jeff.Jones.JLogger 1.0.0

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

There is a newer version of this package available.
See the version list below for details.
Install-Package Jeff.Jones.JLogger -Version 1.0.0
dotnet add package Jeff.Jones.JLogger --version 1.0.0
<PackageReference Include="Jeff.Jones.JLogger" Version="1.0.0" />
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.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

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

NOTE: A README.md file with more details is located in the top folder for JLogger where the NuGet package manager installs it.

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

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

NOTE: A README.md file with more details is located in the top folder for JLogger where the NuGet package manager installs it.

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 72 7/23/2019
1.0.0 59 7/15/2019