NLog.IndentException 0.1.5

There is a newer version of this package available.
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
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.IndentException" Version="0.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.IndentException --version 0.1.5
#r "nuget: NLog.IndentException, 0.1.5"
#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.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.)
There are no supported framework assets in this 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
0.1.9 3,785 3/7/2019
0.1.7 693 2/15/2019
0.1.6 858 1/15/2019
0.1.5 931 1/14/2019