Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LoggingEvent Class

The internal representation of logging events.

For a list of all members of this type, see LoggingEvent Members.

System.Object
���log4net.Core.LoggingEvent

[Visual�Basic]
Public�Class�LoggingEvent
����Implements�ISerializable
[C#]
public�class�LoggingEvent : ISerializable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

When an affirmative decision is made to log then a LoggingEvent instance is created. This instance is passed around to the different log4net components.

This class is of concern to those wishing to extend log4net.

Some of the values in instances of LoggingEvent are considered volatile, that is the values are correct at the time the event is delivered to appenders, but will not be consistent at any time afterwards. If an event is to be stored and then processed at a later time these volatile values must be fixed by calling FixVolatileData. There is a performance penalty for incurred by calling FixVolatileData but it is essential to maintaining data consistency.

Requirements

Namespace: log4net.Core

Assembly: log4net (in log4net.dll)

See Also

LoggingEvent Members | log4net.Core Namespace