Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LoggingEvent�Constructor�(Type, ILoggerRepository, LoggingEventData, FixFlags)

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

[Visual�Basic]
Overloads�Public�Sub�New( _
���ByVal callerStackBoundaryDeclaringType�As�Type,�_
���ByVal repository�As�ILoggerRepository,�_
���ByVal data�As�LoggingEventData,�_
���ByVal fixedData�As�FixFlags�_
)
[C#]
public�LoggingEvent(
���TypecallerStackBoundaryDeclaringType,
���ILoggerRepositoryrepository,
���LoggingEventDatadata,
���FixFlagsfixedData
);

Parameters

callerStackBoundaryDeclaringType
The declaring type of the method that is the stack boundary into the logging system for this call.
repository
The repository this event is logged in.
data
Data used to initialize the logging event.
fixedData
The fields in the struct that have already been fixed.

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.

The fixedData parameter should be used to specify which fields in the data struct have been preset. Fields not specified in the fixedData will be captured from the environment if requested or fixed.

See Also

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