LayoutSkeleton Format Method (LoggingEvent) | Apache log4net™ SDK Documentation

Convenience method for easily formatting the logging event into a string variable.

Namespace: log4net.Layout
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public string Format(
    	LoggingEvent loggingEvent
    )

    Public Function Format (
    	loggingEvent As LoggingEvent
    ) As String

    public:
    String^ Format(
    	LoggingEvent^ loggingEvent
    )

    member Format :
            loggingEvent : LoggingEvent -> string

#### Parameters

loggingEvent
  Type: log4net.Core
  LoggingEvent

  [Missing <param name="loggingEvent"/> documentation for "M:log4net.Layout.LayoutSkeleton.Format(log4net.Core.LoggingEvent)"]

#### Return Value

Type: String

[Missing <returns> documentation for "M:log4net.Layout.LayoutSkeleton.Format(log4net.Core.LoggingEvent)"]

Remarks

Creates a new StringWriter instance to store the formatted logging event.
See Also

#### Reference

LayoutSkeleton Class
Format Overload
log4net.Layout Namespace