FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Processtime Layout Renderer · NLog/NLog Wiki · GitHub

/ NLog Public

Processtime Layout Renderer

Rolf Kristensen edited this page Jul 11, 2026 · 11 revisions

The process lifetime in short sortable format HH:mm:ss.fff.

Platforms Supported: All

See also ${time}, ${date}, ${longdate}, ${shortdate}

Configuration Syntax

${processtime:invariant=Boolean}

Parameters

Rendering Options

  • invariant - Indicates whether to output in invariant time format, and not lookup of current cultureinfo. Boolean Default: true (Before NLog 5.0 the default was false)

    Introduced with NLog 4.5.2

  • culture - Culture used for time format. Default: InvariantCulture

    Introduced with NLog 5.0

Time Source Precision

NLog uses local-time by default, but because conversion from machine-time to local-time has an overhead, then NLog uses cached time-source FastLocal with 15ms time-precision that follows Environment.TickCount. For high time-precision and still fast performance, then consider using Time-source AccurateUtc (Time-precision of 1ms)

Wiki pages Pages 295

Clone this wiki locally


Back | FazBrowse Home | New Git URL