TJC.Logging
0.2.1
See the version list below for details.
dotnet add package TJC.Logging --version 0.2.1
NuGet\Install-Package TJC.Logging -Version 0.2.1
<PackageReference Include="TJC.Logging" Version="0.2.1" />
paket add TJC.Logging --version 0.2.1
#r "nuget: TJC.Logging, 0.2.1"
// Install TJC.Logging as a Cake Addin #addin nuget:?package=TJC.Logging&version=0.2.1 // Install TJC.Logging as a Cake Tool #tool nuget:?package=TJC.Logging&version=0.2.1
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.7)
- TJC.Priority (>= 0.1.1)
- TJC.StringExtensions (>= 0.1.10)
- TJC.TimeExtensions (>= 0.1.6)
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 | 82 | 11/15/2024 |
0.5.2 | 652 | 11/10/2024 |
0.5.1 | 79 | 11/5/2024 |
0.5.0 | 570 | 11/5/2024 |
0.4.1 | 469 | 10/26/2024 |
0.4.0 | 424 | 10/21/2024 |
0.3.2 | 286 | 10/20/2024 |
0.3.1 | 401 | 10/16/2024 |
0.3.0 | 398 | 10/10/2024 |
0.2.2 | 553 | 10/6/2024 |
0.2.1 | 88 | 10/6/2024 |
0.2.0 | 134 | 10/6/2024 |
0.1.12 | 95 | 10/2/2024 |
0.1.11 | 84 | 9/29/2024 |
0.1.10 | 825 | 9/5/2024 |
0.1.9 | 478 | 9/5/2024 |
0.1.8 | 232 | 9/4/2024 |
0.1.7 | 125 | 9/3/2024 |
0.1.6 | 392 | 7/22/2024 |
0.1.5 | 106 | 6/12/2024 |
0.1.4 | 102 | 6/11/2024 |
0.1.3 | 105 | 6/11/2024 |
0.1.2 | 107 | 6/11/2024 |
0.1.1 | 96 | 6/10/2024 |
0.1.0 | 110 | 6/7/2024 |