BlueGroup.TraceClsLib 1.0.0

dotnet add package BlueGroup.TraceClsLib --version 1.0.0
NuGet\Install-Package BlueGroup.TraceClsLib -Version 1.0.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="BlueGroup.TraceClsLib" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlueGroup.TraceClsLib --version 1.0.0
#r "nuget: BlueGroup.TraceClsLib, 1.0.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.
// Install BlueGroup.TraceClsLib as a Cake Addin
#addin nuget:?package=BlueGroup.TraceClsLib&version=1.0.0

// Install BlueGroup.TraceClsLib as a Cake Tool
#tool nuget:?package=BlueGroup.TraceClsLib&version=1.0.0

BlueGroup.TraceClsLib

BlueGroup.TraceClsLib is an open-source library for centralized logging using MSMQ. It is valid both for .NET Framework (from version 3.5) and .NET.

For .NET Framework, it exploits the System.Messaging package, while for .NET it exploits the equivalent MSMQ.Messaging package (System.Messaging is deprecated for .NET).

How To Use

Just add the package to your project via NuGet Package Manager.

To log a message, you have to create a TraceMsg object, containing all the needed information:

  • Application: the name of the application that is logging the message;
  • Date: the date (day, month and year, in the format of a string) when the message is logged;
  • Time: the time (hour, minutes, seconds and eventually milliseconds, in the format of a string) when the message is logged;
  • Method: the name of the method that is logging the message;
  • Message: the message that has to be logged;
  • Computer: the name of the machine that is logging the message (usually Environment.MachineName);
  • User: the user that is logging the message (usually Environment.UserName);
  • TraceType: the severity level of the message. You can choose between four levels: DEBUG, INFO, WARNING and ERROR;
  • TraceCategory: the type of application that is logging the message (e.g. WebService, WindowsService, etc...).

Once the TraceMsg object is created, it can be sent to the messaging queue using a ClsTrace object. The ClsTrace object, when created, internally searches if the desired messaging queue already exists, and creates it if it doesn't. Then, using the SendMessage method, it enqueues all the desired log messages. If no queue name is given to the constructor of the ClsTrace object, the default queue will be named .\Private$\BlueGroupLogService .

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 3.5

    • No dependencies.
  • .NETStandard 2.1

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
1.0.0 68 6/19/2024