| LogEventInfoBufferGetEventsAndClear Method |
Gets the array of events accumulated in the buffer and clears the buffer as one atomic operation.
Namespace:
NLog.Common
Assembly:
NLog (in NLog.dll) Version: 5.2.0+eed5f76d158dbcaef9326f7a0e1c281adad171e8
Syntax public AsyncLogEventInfo[] GetEventsAndClear()
Public Function GetEventsAndClear As AsyncLogEventInfo()
Dim instance As LogEventInfoBuffer
Dim returnValue As AsyncLogEventInfo()
returnValue = instance.GetEventsAndClear()
member GetEventsAndClear : unit -> AsyncLogEventInfo[]
Return Value
Type:
AsyncLogEventInfoEvents in the buffer.
See Also