TJC.Logging 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package TJC.Logging --version 0.2.0
                    
NuGet\Install-Package TJC.Logging -Version 0.2.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="TJC.Logging" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TJC.Logging" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="TJC.Logging" />
                    
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 TJC.Logging --version 0.2.0
                    
#r "nuget: TJC.Logging, 0.2.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.
#addin nuget:?package=TJC.Logging&version=0.2.0
                    
Install TJC.Logging as a Cake Addin
#tool nuget:?package=TJC.Logging&version=0.2.0
                    
Install TJC.Logging as a Cake Tool

GitHub Tag GitHub Release NuGet Version

NuGet Downloads Size License

Table of Contents


Format

  • Timestamp
  • Location (Namespace, Type Name, Member Name, Line Number)
  • Specialty (E.g. Get, Set, Tracker)

Extensions

Debugging

ILogger.LogMark()

Logs detailed information about the current execution location.

ILogger.LogStep(int step)

Logs detailed information about the current execution location, including a step number for debugging purposes.

Example
var step = 0; 
ILogger.LogStep(ref step);
// Do first step
ILogger.LogStep(ref step);
// Do second step

Trackers

ILogger.LogStart()

Returns a LogTracker that is used to track the duration & status of a process.

ILogger.LogEnd(LogTracker, CompletionStatus, Exception)

Logs the duration & completion status of a process.

ILogger.LogSuccess(LogTracker)

Logs the duration & completion status of a successful process.

ILogger.LogFail(LogTracker, Exception)

Logs the duration & completion status of a failed process.


Get & Set

ILogger.LogGet<T>(T obj)

Logs the value of an object and returns the object.

ILogger.LogSet<T>(ref T obj, T value)

Logs the before and after values of a property and set it when done.


Elapsed Time

TimeSpan.GetElapsedTime()

Returns a formatted string of the elapsed time.


Pluralize

string.Pluralize()

Returns a pluralized string if the count is greater than 1.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on TJC.Logging:

Package Downloads
TJC.Collection.Core

Collection of NuGet Packages

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.6.1 186 4/15/2025
0.6.0 652 1/3/2025
0.5.6 112 1/3/2025
0.5.5 133 12/3/2024
0.5.4 94 12/3/2024
0.5.3 125 11/15/2024
0.5.2 1,448 11/10/2024
0.5.1 116 11/5/2024
0.5.0 605 11/5/2024
0.4.1 506 10/26/2024
0.4.0 447 10/21/2024
0.3.2 306 10/20/2024
0.3.1 434 10/16/2024
0.3.0 418 10/10/2024
0.2.2 574 10/6/2024
0.2.1 109 10/6/2024
0.2.0 153 10/6/2024
0.1.12 117 10/2/2024
0.1.11 106 9/29/2024
0.1.10 846 9/5/2024
0.1.9 495 9/5/2024
0.1.8 250 9/4/2024
0.1.7 140 9/3/2024
0.1.6 410 7/22/2024
0.1.5 121 6/12/2024
0.1.4 120 6/11/2024
0.1.3 124 6/11/2024
0.1.2 123 6/11/2024
0.1.1 116 6/10/2024
0.1.0 130 6/7/2024