NLog.WPF
1.2.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NLog.WPF --version 1.2.3
NuGet\Install-Package NLog.WPF -Version 1.2.3
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="NLog.WPF" Version="1.2.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.WPF --version 1.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NLog.WPF, 1.2.3"
#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 NLog.WPF as a Cake Addin #addin nuget:?package=NLog.WPF&version=1.2.3 // Install NLog.WPF as a Cake Tool #tool nuget:?package=NLog.WPF&version=1.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NLog.WPF
This package is an extension to NLog.
NLog.WPF is a simple WPF-control to show NLog-logs. It's heavily inspired by NLog.Windows.Forms and this blog.
How to use?
Add a namespace to your Window, like this:
xmlns:nlog ="clr-namespace:NLog.WPF;assembly=NLog.WPF"
then add the control
<nlog:NlogListView x:Name="logCtrl" TimeWidth="auto" LoggerNameWidth="0" LevelWidth="auto" ExceptionWidth="auto" MessageWidth="auto" />
or
<nlog:NlogRichTextBox x:Name="logCtrlNlogRichTextBox1"/>
clear NlogRichTextBox
<Button Content="ClearLog" CommandTarget="{Binding ElementName=logCtrlNlogRichTextBox1}" Command="{x:Static nlog:NlogRichTextBox.ClearCommand}" />
To setup NlogViewer as a target, add the following to your Nlog.config.
<extensions>
<add assembly="NLog.WPF" />
</extensions>
<targets>
<target xsi:type="NLog.WPF" name="ctrl" />
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="ctrl" />
</rules>
publish packget
dotnet nuget push <packageName> --api-key <apikey> --source https://api.nuget.org/v3/index.json
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows 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.
-
net6.0-windows7.0
- NLog (>= 5.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.