Click or drag to resize

AssemblyVersionLayoutRenderer Class

Renders the assembly version information for the entry assembly or a named assembly.
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderersAssemblyVersionLayoutRenderer
      NLog.Web.LayoutRenderersAssemblyVersionLayoutRenderer

Namespace:  NLog.LayoutRenderers
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public class AssemblyVersionLayoutRenderer : LayoutRenderer

The AssemblyVersionLayoutRenderer type exposes the following members.

Constructors
  NameDescription
Public methodAssemblyVersionLayoutRenderer
Initializes a new instance of the AssemblyVersionLayoutRenderer class
Top
Properties
  NameDescription
Public propertyDefault
The default value to render if the Version is not available
Public propertyFormat
Gets or sets the custom format of the assembly version output.
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from LayoutRenderer.)
Public propertyName
The (full) name of the assembly. If null, using the entry assembly.
Public propertyType
Gets or sets the type of assembly version to retrieve.
Protected propertyValueFormatter
Value formatter
(Inherited from LayoutRenderer.)
Top
Methods
  NameDescription
Protected methodAppend
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
(Overrides LayoutRendererAppend(StringBuilder, LogEventInfo).)
Protected methodCloseLayoutRenderer
Closes the layout renderer.
(Overrides LayoutRendererCloseLayoutRenderer.)
Protected methodGetAssembly
Gets the assembly specified by Name, or entry assembly otherwise
Protected methodGetCulture
Get the CultureInfo for rendering the messages to a String
(Inherited from LayoutRenderer.)
Protected methodGetFormatProvider
Get the IFormatProvider for rendering the messages to a String
(Inherited from LayoutRenderer.)
Protected methodInitializeLayoutRenderer
Initializes the layout renderer.
(Overrides LayoutRendererInitializeLayoutRenderer.)
Public methodRender
Renders the value of layout renderer in the context of the specified log event.
(Inherited from LayoutRenderer.)
Protected methodResolveServiceT
Resolves the interface service-type from the service-repository
(Inherited from LayoutRenderer.)
Public methodToString
Returns a string that represents the current object.
(Inherited from LayoutRenderer.)
Top
Remarks
As this layout renderer uses reflection and version information is unlikely to change during application execution, it is recommended to use it in conjunction with the CachedLayoutRendererWrapper.
Remarks
See Also