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: 1.2.15.0 (1.2.15.0)
Syntax

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

Parameters

callerStackBoundaryDeclaringType
Type: OnlineSystem Type
The declaring type of the method that is the stack boundary into the logging system for this call.
repository
Type: log4net.Repository ILoggerRepository
The repository this event is logged in.
loggerName
Type: OnlineSystem String
The name of the logger of this event.
level
Type: log4net.Core Level
The level of this event.
message
Type: OnlineSystem Object
The message of this event.
exception
Type: OnlineSystem Exception
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