Layout Renderers

The following layout renderers are available. Click on a name for full reference.

NameDescription.NET Framework.NET CFMono on WindowsMono on Unix
1.01.12.01.02.01.02.01.02.0
asp-application ASP Application variable.     
aspnet-application ASP.NET Application variable.   
aspnet-request ASP.NET Request variable   
aspnet-session ASP.NET Session variable.   
aspnet-sessionid ASP.NET Session ID.   
aspnet-user-authtype ASP.NET User variable   
aspnet-user-identity ASP.NET User variable   
asp-request ASP Request variable     
asp-session ASP Session variable.     
basedir The current application domain's base directory.
callsite The call site (class name, method name and source information)   
counter A counter value (increases on each layout rendering).
date A date and time in the specified format.
environment The environment variable.   
event-context Log event context data
exception Exception information provided through a call to one of the Logger.*Exception() methods.
file-contents Contents of the specified file.
gc The information about the garbage collector.       
gdc Global Diagnostics Context item. Provided for compatibility with log4net.
guid Globally-unique identifier (GUID).   
identity Thread identity information (name and authentication information)
level The log level.
literal A string literal.
log4jxmlevent XML event description compatible with log4j, Chainsaw and NLogViewer
logger The logger name.
longdate The date and time in a long, sortable format yyyy-MM-dd HH:mm:ss.mmm
machinename The machine name that the process is running on.   
mdc Mapped Diagnostic Context item. Provided for compatibility with log4net.
message The formatted log message.
ndc Nested Diagnostic Context item. Provided for compatibility with log4net.
newline A newline literal.
nlogdir The directory where NLog.dll is located.
performancecounter The performance counter.   
processid The identifier of the current process.
processinfo The information about the running process.       
processname The name of the current process.
processtime The process time in format HH:mm:ss.mmm
qpc High precision timer, based on the value returned from QueryPerformanceCounter() optionally converted to seconds.   
registry A value from the Registry.     
rot13 Decodes text "encrypted" with ROT-13.
shortdate The short date in a sortable format yyyy-MM-dd
specialfolder System special folder path (includes My Documents, My Music, Program Files, Desktop, and more)   
stacktrace Stack trace renderer.   
tempdir A temporary directory.
threadid The identifier of the current thread.
threadname The name of the current thread.   
ticks The Ticks value of current date and time.
windows-identity Thread Windows identity information (username)