Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LoggingEvent�Constructor�(Type, ILoggerRepository, String, Level, Object, Exception)

Initializes a new instance of the LoggingEvent class from the supplied parameters.

[Visual�Basic]
Overloads�Public�Sub�New( _
���ByVal callerStackBoundaryDeclaringType�As�Type,�_
���ByVal repository�As�ILoggerRepository,�_
���ByVal loggerName�As�String,�_
���ByVal level�As�Level,�_
���ByVal message�As�Object,�_
���ByVal exception�As�Exception�_
)
[C#]
public�LoggingEvent(
���TypecallerStackBoundaryDeclaringType,
���ILoggerRepositoryrepository,
���stringloggerName,
���Levellevel,
���objectmessage,
���Exceptionexception
);

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.
loggerName
The name of the logger of this event.
level
The level of this event.
message
The message of this event.
exception
The exception for this event.

Remarks

Except TimeStamp, Level and LoggerName, all fields of LoggingEvent are filled when actually needed. Call FixVolatileData to cache all data locally to prevent inconsistencies.

This method is called by the log4net framework to create a logging event.

See Also

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