${specialfolder} Layout Renderer


System special folder path (includes My Documents, My Music, Program Files, Desktop, and more)

AssemblyClass.NET Framework.NET CFMono on WindowsMono on Unix
1.01.12.01.02.01.02.01.02.0
NLog.dllNLog.LayoutRenderers.SpecialFolderLayoutRenderer  

Parameters:

NameTypeDescription
dirstring
The name of the directory to be Path.Combine()'d with the directory name.
filestring
The name of the file to be Path.Combine()'d with the directory name.
folderSpecialFolder
System special folder.

Full list of options is available at MSDN. The most common ones are:

  • ApplicationData - roaming application data for current user.
  • CommonApplicationData - application data for all users.
  • MyDocuments - My Documents
  • DesktopDirectory - Desktop directory
  • LocalApplicationData - non roaming application data
  • Personal - user profile directory
  • System - System directory

culturestring
The culture name to be used for rendering.
cultureInfoCultureInfo
The CultureInfo to be used for rendering.
fixedLengthboolean
Trim the rendered text to the AbsolutePadding value.

Default value is: False.

lowerCaseboolean
Render an upper-case string.

Default value is: False.

padCharacterChar
The padding character.
paddinginteger
Padding value.
upperCaseboolean
Render an upper-case string.

Default value is: False.


Back to the layout renderer list.