TJC.Logging 0.1.12

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

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

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.3 100 11/15/2024
0.5.2 770 11/10/2024
0.5.1 86 11/5/2024
0.5.0 577 11/5/2024
0.4.1 474 10/26/2024
0.4.0 429 10/21/2024
0.3.2 291 10/20/2024
0.3.1 417 10/16/2024
0.3.0 403 10/10/2024
0.2.2 558 10/6/2024
0.2.1 93 10/6/2024
0.2.0 139 10/6/2024
0.1.12 100 10/2/2024
0.1.11 89 9/29/2024
0.1.10 829 9/5/2024
0.1.9 482 9/5/2024
0.1.8 236 9/4/2024
0.1.7 129 9/3/2024
0.1.6 396 7/22/2024
0.1.5 110 6/12/2024
0.1.4 106 6/11/2024
0.1.3 109 6/11/2024
0.1.2 111 6/11/2024
0.1.1 100 6/10/2024
0.1.0 114 6/7/2024