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" />
<PackageReference Include="DebugTrace.Log4net" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=DebugTrace.Log4net&version=4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DebugTrace-net
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.
- Insert
Trace.Enter()
at the beginning of methods. - Insert
Trace.Leave()
at the end of methods or just before thereturn
statements. - Insert
Trace.Print("foo", foo)
to output arguments, local variables and return value to the log if necessary.
8. License
9.Change Log
<div align="center" style="color:#6699EE">(C) 2018 Masato Kokubo</div>
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. 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.
-
net8.0
- DebugTrace (>= 4.0.0)
- log4net (>= 3.1.0)
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.