Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

Stacktrace layout renderer

NLog documentation is a Wiki, which allows registered users to edit its content.
If you want to contribute, please create a user account and contact Jarek to get edit access.

Stack trace renderer. 

Supported in

Configuration Syntax

${stacktrace:format=Enum:topFrames=Integer:separator=String}
Read more about using the Configuration File.

Parameters

  • Rendering Options
  • format - Output format of the stack trace. Default: Flat
    Possible values:
    • DetailedFlat - Detailed flat format (method signatures displayed in a single line).
    • Flat - Flat format (class and method names displayed in a single line).
    • Raw - Raw format (multiline - as returned by StackFrame.ToString() method).
  • topFrames - Number of top stack frames to be rendered.Integer Default: 3
  • separator - Stack frame separator string. Default: =>