log4net SDK Reference

LoggingEvent Constructor (LoggingEventData)

[This is preliminary documentation and subject to change.]

Initializes a new instance of the LoggingEvent class using specific data.

[Visual Basic]
Overloads Public Sub New( _
   ByVal data As LoggingEventData _
)
[C#]
public LoggingEvent(
   LoggingEventData data
);

Parameters

data
Data used to initialize the logging event.

Remarks

This constructor is provided to allow a LoggingEvent to be created independently of the log4net framework. This can be useful if you require a custom serialization scheme.

Use the GetLoggingEventData method to obtain an instance of the LoggingEventData class.

See Also

LoggingEvent Class | log4net.Core Namespace | LoggingEvent Constructor Overload List