MemoryAppender ClassApache log4net™ SDK Documentation
Stores logging events in an array.
Inheritance Hierarchy

OnlineSystem Object
  log4net.Appender AppenderSkeleton
    log4net.Appender MemoryAppender

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public class MemoryAppender : AppenderSkeleton
Remarks

The memory appender stores all the logging events that are appended in an in-memory array.

Use the [M:PopAllEvents()] method to get and clear the current list of events that have been appended.

Use the [M:GetEvents()] method to get the current list of events that have been appended. Note there is a race-condition when calling [M:GetEvents()] and [M:Clear()] in pairs, you better use in that case.

Use the [M:Clear()] method to clear the current list of events. Note there is a race-condition when calling [M:GetEvents()] and [M:Clear()] in pairs, you better use in that case.

See Also