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

ProcessInfo Layout Renderer · NLog/NLog Wiki · GitHub

/ NLog Public

ProcessInfo Layout Renderer

Rolf Kristensen edited this page Aug 16, 2026 · 11 revisions

The information about the running process returned by Process.GetCurrentProcess()

Platforms Supported: All

⚠️ NLog v6.2 has marked this as obsolete, because the Process-object has lots of dependencies. Instead use alternatives ${processid} or ${processname} or ${processstart} or ${processtime} or ${gc:WorkingSet}

Configuration Syntax

${processinfo:property=Enum:format=string}

Parameters

Rendering Options

  • property - Property to retrieve. Default: Id
    Possible values:

    • ExitCode - Exit Code (Not available for current process).
    • ExitTime - Exit Time (Not available for current process).
    • Handle - Process Handle.
    • HandleCount - Handle Count.
    • HasExited - Whether process has exited (Not available for current process).
    • Id - Process ID.
    • MachineName - Machine name.
    • MainWindowHandle - Handle of the main window.
    • MainWindowTitle - Title of the main window.
    • MaxWorkingSet - Maximum Working Set.
    • MinWorkingSet - Minimum Working Set.
    • NonPagedSystemMemorySize - Non-paged System Memory Size.
    • NonPagedSystemMemorySize64 - Non-paged System Memory Size (64-bit).
    • PagedMemorySize - Paged Memory Size.
    • PagedMemorySize64 - Paged Memory Size (64-bit)..
    • PagedSystemMemorySize - Paged System Memory Size.
    • PagedSystemMemorySize64 - Paged System Memory Size (64-bit).
    • PeakPagedMemorySize - Peak Paged Memory Size.
    • PeakPagedMemorySize64 - Peak Paged Memory Size (64-bit).
    • PeakVirtualMemorySize - Peak Virtual Memory Size.
    • PeakVirtualMemorySize64 - Peak Virtual Memory Size (64-bit)..
    • PeakWorkingSet - Peak Working Set Size.
    • PeakWorkingSet64 - Peak Working Set Size (64-bit).
    • PriorityBoostEnabled - Whether priority boost is enabled.
    • PriorityClass - Priority Class.
    • PrivateMemorySize - Private Memory Size.
    • PrivateMemorySize64 - Private Memory Size (64-bit).
    • PrivilegedProcessorTime - Privileged Processor Time.
    • ProcessName - Process Name.
    • Responding - Whether process is responding.
    • SessionId - Session ID.
    • StartTime - Process Start Time.
    • TotalProcessorTime - Total Processor Time.
    • UserProcessorTime - User Processor Time.
    • VirtualMemorySize - Virtual Memory Size.
    • VirtualMemorySize64 - Virtual Memory Size (64-bit).
    • WorkingSet - Working Set Size.
    • WorkingSet64 - Working Set Size (64-bit)
  • format formatstring in the value is formatable. Ex. formatting process StartTime. Introduced in NLog 4.4

Wiki pages Pages 295

Clone this wiki locally


Back | FazBrowse Home | New Git URL