TJC.Logging 0.5.1

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

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

GitHub Tag GitHub Release NuGet Version

NuGet Downloads Size License

codecov


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 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

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.5.1] - 2024-11-05

## [0.5.0] - 2024-11-05

## [0.4.1] - 2024-10-26

### Added

- Release notes to the NuGet Package

## [0.4.0] - 2024-10-21

### Added

- Codecov reporting

## [0.3.2] - 2024-10-20

## [0.3.1] - 2024-10-16

## [0.3.0] - 2024-10-10

### Added

- Changelog Automation

## [0.2.2] - 2024-10-06

### Changed

- Improve formatting of log exception

## [0.2.1] - 2024-10-05

### Changed

- Timestamp format now includes ms

## [0.2.0] - 2024-10-05

### Added

- Message & exception extensions

[Unreleased]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.5.1...HEAD

[0.5.1]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.5.0...v0.5.1

[0.5.0]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.4.1...v0.5.0

[0.4.1]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.4.0...v0.4.1

[0.4.0]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.3.2...v0.4.0

[0.3.2]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.3.1...v0.3.2

[0.3.1]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.3.0...v0.3.1

[0.3.0]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.2.2...v0.3.0

[0.2.2]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.2.1...v0.2.2

[0.2.1]: https://github.com/TJC-Tools/TJC.Logging/compare/v0.2.0...v0.2.1

[0.2.0]: https://github.com/TJC-Tools/TJC.Logging/releases/tag/v0.2.0