pkar.WPF.Log 1.3.1

Prefix Reserved
dotnet add package pkar.WPF.Log --version 1.3.1
                    
NuGet\Install-Package pkar.WPF.Log -Version 1.3.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="pkar.WPF.Log" Version="1.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="pkar.WPF.Log" Version="1.3.1" />
                    
Directory.Packages.props
<PackageReference Include="pkar.WPF.Log" />
                    
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 pkar.WPF.Log --version 1.3.1
                    
#r "nuget: pkar.WPF.Log, 1.3.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.
#:package pkar.WPF.Log@1.3.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=pkar.WPF.Log&version=1.3.1
                    
Install as a Cake Addin
#tool nuget:?package=pkar.WPF.Log&version=1.3.1
                    
Install as a Cake Tool

This is UI related methods/extensions for my pkar.Log nuget.

Class pkar.UI.Log

CrashMessageExit(sTxt As String, exMsg As String)
CrashMessageExit(sTxt As String, ex As Exception, Optional bWithStack As Boolean = False)

SetAppStartTimestamp()
SetAppExitTimestamp()

InitGlobalExceptionHandler()    // works for UWP apps

LogToConsole(enabled As Boolean) // since 1.3.0
LogToConsoleFromCmdLine()       // since 1.3.0, enables console logging if "/logconsole"

class pkar.UI.LogExtensions

Window.CrashMessageShowAsync
Window.CheckEventLogAsync  // for WPF apps
Page.CheckEventLogAsync  // for WPF apps, after Page.Loaded 

two for testing

TextBox.AttachLogTextBox(Optional ByVal maxlines As Integer = 5000)
Window.ShowLogWindow

użycie

Imports pkar.UI.Log

AddHandler Application.Current.Exit, AddressOf App_Exit

Private Sub App_Exit(sender As Object, e As ExitEventArgs)
    SetAppExitTimestamp()
End Sub
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows 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
1.3.1 42 1/26/2026