DebugTrace.Log4net 4.0.0

dotnet add package DebugTrace.Log4net --version 4.0.0
                    
NuGet\Install-Package DebugTrace.Log4net -Version 4.0.0
                    
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="DebugTrace.Log4net" Version="4.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DebugTrace.Log4net" Version="4.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DebugTrace.Log4net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DebugTrace.Log4net --version 4.0.0
                    
#r "nuget: DebugTrace.Log4net, 4.0.0"
                    
#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.
#addin nuget:?package=DebugTrace.Log4net&version=4.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DebugTrace.Log4net&version=4.0.0
                    
Install as a Cake Tool

DebugTrace-net

Japanese

DebugTrace-net is a library that outputs trace logs when debugging .NET programs, and can be used with programs using .NET 6 or later.

1. Features

  • Automatically outputs invoker's class name, method name, source file name and line number.
  • Automatically indents the log with nesting methods and objects.
  • Automatically breaks at the output of values.
  • Automatically output logs when changing threads.
  • Uses reflection to output objects of classes that do not implement ToString method.
  • You can customize the output content in DebugTrace.properties.
  • There are no dependent libraries at run time if you output to the console.
  • You can use the following logging library.

2. Install

Search DebugTrace packege on NuGet and install it.
If you output logs using log4net or NLog, install DebugTrace.Log4net or DebugTrace.NLog package.

3. How to use

Do the following for debug target and related methods.

  1. Insert Trace.Enter() at the beginning of methods.
  2. Insert Trace.Leave() at the end of methods or just before the return statements.
  3. Insert Trace.Print("foo", foo) to output arguments, local variables and return value to the log if necessary.

Details...

8. License

The MIT License (MIT)

9.Change Log

Change Log

<div align="center" style="color:#6699EE">(C) 2018 Masato Kokubo</div>

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0 11 6/28/2025
3.0.0 130 6/23/2024
2.1.0 400 11/13/2022
2.0.0 585 4/26/2020
1.5.0 851 10/28/2018
1.1.0 1,207 4/23/2018
1.0.1 1,252 4/15/2018
1.0.0 1,335 4/8/2018
0.6.2-beta 1,082 3/21/2018
0.6.1-beta 1,041 3/19/2018
0.6.0-beta 1,056 3/18/2018

Please Read CHANGELOG.md.