-
Notifications
You must be signed in to change notification settings - Fork 0
Date layout renderer
Lincoln Atkinson edited this page Aug 10, 2016
·
5 revisions
Current date and time.
Supported in .NET, Silverlight, Compact Framework and Mono.
##Configuration Syntax
${date:universalTime=Boolean:format=String:culture=Culture}
##Parameters ###Rendering Options
-
universalTime - Indicates whether to output UTC time instead of local time.Boolean Default: False
-
format - Date format. Can be any argument accepted by DateTime.ToString(format). Note that colons needs to escaped with a backslash. Example:
${date:format=yyyy-MM-dd HH\:mm\:ss.fff}
-
culture - Culture used for rendering.Culture
- Search in documentation
- Getting started
- Examples
- External articles and tutorials
- FAQ
- Platform support
- Advanced Configuration file options
- Filtering log messages
- [Using Time Sources](Time Source)
- Visual Studio support
- Who is using NLog
- [Write custom extensions](Extending NLog)