Initializes a new instance of the LoggingEvent class
from the supplied parameters.
Namespace: log4net.CoreAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- callerStackBoundaryDeclaringType
- Type: System 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: System String
The name of the logger of this event.
- level
- Type: log4net.Core Level
The level of this event.
- message
- Type: System Object
The message of this event.
- exception
- Type: System 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