DebugTrace.NLog
2.1.0
dotnet add package DebugTrace.NLog --version 2.1.0
NuGet\Install-Package DebugTrace.NLog -Version 2.1.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.NLog" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DebugTrace.NLog --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DebugTrace.NLog, 2.1.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.
// Install DebugTrace.NLog as a Cake Addin
#addin nuget:?package=DebugTrace.NLog&version=2.1.0
// Install DebugTrace.NLog as a Cake Tool
#tool nuget:?package=DebugTrace.NLog&version=2.1.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 Core 3.1 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.
9. License
10. Release Notes
DebugTrace-net 2.1.0 - November 13, 2022
Print
methods now returns the value or the message of the argument.- Now prints the runtime
.NET
version in theDbeugTrace-net
startup log.
Related packages:
DebugTrace Package | Related Package |
---|---|
DebugTrace.Log4net 2.1.0 | log4net 2.0.15 |
DebugTrace.NLog 2.1.0 | NLog 4.7.15 |
<div align="center" style="color:#6699EE">(C) 2018 Masato Kokubo</div>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- DebugTrace (>= 2.1.0)
- NLog (>= 4.7.15)
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 |
---|---|---|
2.1.0 | 346 | 11/13/2022 |
2.0.0 | 471 | 4/26/2020 |
1.6.0 | 690 | 11/18/2018 |
1.5.0 | 697 | 10/28/2018 |
1.1.0 | 905 | 4/23/2018 |
1.0.1 | 967 | 4/15/2018 |
1.0.0 | 1,023 | 4/8/2018 |
0.6.2-beta | 740 | 3/21/2018 |
0.6.1-beta | 763 | 3/19/2018 |
0.6.0-beta | 760 | 3/18/2018 |