Click or drag to resize

AssemblyVersionLayoutRenderer Class

Extend NLog.LayoutRenderers.AssemblyVersionLayoutRenderer with ASP.NET Full and Core support
Inheritance Hierarchy
SystemObject
  NLog.LayoutRenderersLayoutRenderer
    NLog.LayoutRenderersAssemblyVersionLayoutRenderer
      NLog.Web.LayoutRenderersAssemblyVersionLayoutRenderer

Namespace:  NLog.Web.LayoutRenderers
Assemblies:   NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
  NLog.Web (in NLog.Web.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax
public class AssemblyVersionLayoutRenderer : AssemblyVersionLayoutRenderer

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
(Inherited from AssemblyVersionLayoutRenderer.)
Public propertyFixThreadAgnostic
Support capture of Assembly-Version from active HttpContext ApplicationInstance
Public propertyFormat
Gets or sets the custom format of the assembly version output.
(Inherited from AssemblyVersionLayoutRenderer.)
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.
(Inherited from AssemblyVersionLayoutRenderer.)
Public propertyType
Gets or sets the type of assembly version to retrieve.
(Inherited from AssemblyVersionLayoutRenderer.)
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.
(Inherited from AssemblyVersionLayoutRenderer.)
Protected methodCloseLayoutRenderer
Closes the layout renderer.
(Inherited from AssemblyVersionLayoutRenderer.)
Protected methodGetAssembly
Gets the assembly specified by Name, or entry assembly otherwise
(Overrides AssemblyVersionLayoutRendererGetAssembly.)
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 AssemblyVersionLayoutRendererInitializeLayoutRenderer.)
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
1${assembly-version}
See Also