TJC.Logging
0.1.11
See the version list below for details.
dotnet add package TJC.Logging --version 0.1.11
NuGet\Install-Package TJC.Logging -Version 0.1.11
<PackageReference Include="TJC.Logging" Version="0.1.11" />
paket add TJC.Logging --version 0.1.11
#r "nuget: TJC.Logging, 0.1.11"
// Install TJC.Logging as a Cake Addin #addin nuget:?package=TJC.Logging&version=0.1.11 // Install TJC.Logging as a Cake Tool #tool nuget:?package=TJC.Logging&version=0.1.11
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
Returns a formatted string of the elapsed time.
Pluralize
Returns a pluralized string if the count is greater than 1.
Product | Versions 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. |
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- TJC.Inclusion (>= 0.1.2)
- TJC.Priority (>= 0.1.1)
- TJC.StringExtensions (>= 0.1.0)
- TJC.TimeExtensions (>= 0.1.0)
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 | 91 | 11/15/2024 |
0.5.2 | 695 | 11/10/2024 |
0.5.1 | 81 | 11/5/2024 |
0.5.0 | 572 | 11/5/2024 |
0.4.1 | 471 | 10/26/2024 |
0.4.0 | 426 | 10/21/2024 |
0.3.2 | 288 | 10/20/2024 |
0.3.1 | 403 | 10/16/2024 |
0.3.0 | 400 | 10/10/2024 |
0.2.2 | 555 | 10/6/2024 |
0.2.1 | 90 | 10/6/2024 |
0.2.0 | 136 | 10/6/2024 |
0.1.12 | 97 | 10/2/2024 |
0.1.11 | 86 | 9/29/2024 |
0.1.10 | 827 | 9/5/2024 |
0.1.9 | 480 | 9/5/2024 |
0.1.8 | 234 | 9/4/2024 |
0.1.7 | 127 | 9/3/2024 |
0.1.6 | 394 | 7/22/2024 |
0.1.5 | 108 | 6/12/2024 |
0.1.4 | 104 | 6/11/2024 |
0.1.3 | 107 | 6/11/2024 |
0.1.2 | 109 | 6/11/2024 |
0.1.1 | 98 | 6/10/2024 |
0.1.0 | 112 | 6/7/2024 |