TJC.Logging 0.2.2

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

// Install TJC.Logging as a Cake Tool
#tool nuget:?package=TJC.Logging&version=0.2.2                

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. 
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.5.5 108 12/3/2024
0.5.4 78 12/3/2024
0.5.3 113 11/15/2024
0.5.2 1,281 11/10/2024
0.5.1 105 11/5/2024
0.5.0 581 11/5/2024
0.4.1 482 10/26/2024
0.4.0 434 10/21/2024
0.3.2 296 10/20/2024
0.3.1 420 10/16/2024
0.3.0 406 10/10/2024
0.2.2 563 10/6/2024
0.2.1 99 10/6/2024
0.2.0 142 10/6/2024
0.1.12 107 10/2/2024
0.1.11 98 9/29/2024
0.1.10 838 9/5/2024
0.1.9 487 9/5/2024
0.1.8 241 9/4/2024
0.1.7 134 9/3/2024
0.1.6 399 7/22/2024
0.1.5 115 6/12/2024
0.1.4 109 6/11/2024
0.1.3 112 6/11/2024
0.1.2 114 6/11/2024
0.1.1 105 6/10/2024
0.1.0 117 6/7/2024