LoggingEvent Constructor (Type, ILoggerRepository, String, Level, Object, Exception)Apache log4net™ SDK Documentation
Initializes a new instance of the LoggingEvent class from the supplied parameters.

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

public LoggingEvent(
	Type callerStackBoundaryDeclaringType,
	ILoggerRepository repository,
	string loggerName,
	Level level,
	Object message,
	Exception exception
)

Parameters

callerStackBoundaryDeclaringType
Type: SystemType
The declaring type of the method that is the stack boundary into the logging system for this call.
repository
Type: log4net.RepositoryILoggerRepository
The repository this event is logged in.
loggerName
Type: SystemString
The name of the logger of this event.
level
Type: log4net.CoreLevel
The level of this event.
message
Type: SystemObject
The message of this event.
exception
Type: SystemException
The exception for this event.
Remarks

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

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

See Also

Reference