Skip to content

ScopeTiming Layout Renderer

Rolf Kristensen edited this page Feb 4, 2023 · 4 revisions

ScopeContext allows one to give a scope name for an operation that can be async. When the scope begins then it automatically captures a timestamp. This can be used to show duration of the active scope.

Platforms Supported: All

Introduced in NLog 5.0 and replaces ${ndlctiming}

See also NLog Context and ${scopeproperty} and ${scopenested}

Configuration Syntax

${scopetiming:currentScope=Boolean:StartTime=Boolean:format=String}

Parameters

Rendering Options

  • currentScope - Whether to only include the duration of the last scope created. Boolean. Default False.
  • StartTime - Whether to just display the scope creation time, and not the duration. Boolean. Default False
  • format - TimeSpan format. Can be any argument accepted by TimeSpan.ToString(format). string. Default null
Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy