Method Capture
Capture(int, float, Func<AsyncRequest<object>, Result>)
Enable capture log with bufferSize and maxTimeElapsed.
Declaration
public static void Capture(int bufferSize = 8192, float maxElapsedSeconds = 5, Func<AsyncRequest<object>, AsyncRequest.Result> functor = null)
Parameters
Type | Name | Description |
---|---|---|
int | bufferSize | Maximum buffer size to hold in memory before the data is flushed down to the file system. |
float | maxElapsedSeconds | Maximum time to hold the data in the buffer before it is flushed down to the file system. |
Func<AsyncRequest<object>, AsyncRequest.Result> | functor | Callback to be invoked to consume the log produced. |