Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

Callsite 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.

The call site (class name, method name and source information). 

Supported in

Configuration Syntax

${callsite:className=Boolean:fileName=Boolean:includeSourcePath=Boolean
          :methodName=Boolean}
Read more about using the Configuration File.

Parameters

  • Rendering Options
  • className - Indicates whether to render the class name.Boolean Default: True
  • fileName - Indicates whether to render the source file name and line number.Boolean Default: False
    This parameter is not supported in:
    • NLog v2.0 for Silverlight 2.0
    • NLog v2.0 for Silverlight 3.0
    • NLog v2.0 for Silverlight 4.0
    • NLog v2.0 for Silverlight for Windows Phone 7
    • NLog v2.0 for Silverlight for Windows Phone 7.1
  • includeSourcePath - Indicates whether to include source file path.Boolean Default: True
    This parameter is not supported in:
    • NLog v2.0 for Silverlight 2.0
    • NLog v2.0 for Silverlight 3.0
    • NLog v2.0 for Silverlight 4.0
    • NLog v2.0 for Silverlight for Windows Phone 7
    • NLog v2.0 for Silverlight for Windows Phone 7.1
  • methodName - Indicates whether to render the method name.Boolean Default: True
Ads by Lake Quincy Media