 | AspNetLayoutRendererBaseDoAppend Method |
Note: This API is now obsolete.
Renders the value of layout renderer in the context of the specified log event into StringBuilder.
Namespace:
NLog.Web.LayoutRenderers
Assemblies:
NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 6.0.0+59339f2811712b446adf6dcd8a6bad39ad9f2ba1
NLog.Web (in NLog.Web.dll) Version: 6.0.0+59339f2811712b446adf6dcd8a6bad39ad9f2ba1
Syntax[ObsoleteAttribute("Instead override Append-method, and manual handle when HttpContextAccessor has no valid HttpContext. Marked obsolete with NLog v6.0")]
protected virtual void DoAppend(
StringBuilder builder,
LogEventInfo logEvent
)<ObsoleteAttribute("Instead override Append-method, and manual handle when HttpContextAccessor has no valid HttpContext. Marked obsolete with NLog v6.0")>
Protected Overridable Sub DoAppend (
builder As StringBuilder,
logEvent As LogEventInfo
)
Dim builder As StringBuilder
Dim logEvent As LogEventInfo
Me.DoAppend(builder, logEvent)[<ObsoleteAttribute("Instead override Append-method, and manual handle when HttpContextAccessor has no valid HttpContext. Marked obsolete with NLog v6.0")>]
abstract DoAppend :
builder : StringBuilder *
logEvent : LogEventInfo -> unit
[<ObsoleteAttribute("Instead override Append-method, and manual handle when HttpContextAccessor has no valid HttpContext. Marked obsolete with NLog v6.0")>]
override DoAppend :
builder : StringBuilder *
logEvent : LogEventInfo -> unit Parameters
- builder
- Type: System.TextStringBuilder
The StringBuilder to append the rendered data to. - logEvent
- Type: NLogLogEventInfo
Logging event.
Remarks
See Also