Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Longdate Layout Renderer

Rolf Kristensen edited this page Oct 19, 2024 · 11 revisions

The date and time in a long, sortable format yyyy-MM-dd HH:mm:ss.ffff.

Platforms Supported: All

Alternative ${date:format=yyyy-MM-dd_HH} can be used to customize the DateTime-format.

Configuration Syntax

${longdate:universalTime=Boolean}

Parameters

Rendering Options

  • universalTime - Indicates whether to output UTC time instead of local time.Boolean Default: False

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)

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.