NLog.IndentException
0.1.5
See the version list below for details.
dotnet add package NLog.IndentException --version 0.1.5
NuGet\Install-Package NLog.IndentException -Version 0.1.5
<PackageReference Include="NLog.IndentException" Version="0.1.5" />
paket add NLog.IndentException --version 0.1.5
#r "nuget: NLog.IndentException, 0.1.5"
// Install NLog.IndentException as a Cake Addin
#addin nuget:?package=NLog.IndentException&version=0.1.5
// Install NLog.IndentException as a Cake Tool
#tool nuget:?package=NLog.IndentException&version=0.1.5
I've asked a question about exception layout renderer at SO
However seems that writing custom layout renderer is not so complex So here i will keep IndentExceptionLayoutRenderer.cs source code
This renderer allows to show exception using readable format (from my point of view) in the log (file or console)
src\NLog.config is a sample configuration that shows how layout can be parameterized for console and file logging
Below you can find IndentException class properties that can help you to adjust exception logging
property name | description |
---|---|
Indent | what character(s) are placed before exception in the log (default is tab) |
StackTraceIndent | indent between each stack trace line (default is two tab characters) |
BeforeType | is written before exception type name (default [) |
AfterType | is written after exception type name (default ]) |
Separator | separator between exception type and message |
LogStack | to log stack trace or not (for console logger e.g.) |
Learn more about Target Frameworks and .NET Standard.
-
- NLog (>= 4.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.