NLog.Targets.MemoryTarget
Writes log messages to Logs in memory for programmatic retrieval.
Gets or sets a value indicating whether enumeration of Logs blocks application logging.
Blocking enumeration provides a consistent view of the logs, but can temporarily block application logging.
When set to false, logging can continue during enumeration, but items can be skipped
if the ring-buffer wraps while the enumeration is in progress.
Gets the list of logs gathered in the MemoryTarget.
Gets or sets the maximum number of logs to retain in memory. Zero or Negative means no limit.
public MemoryTarget()
Initializes a new instance of the MemoryTarget class.
Initializes a new instance of the MemoryTarget class.
Dumps the first log message at Error or more severe,
or the first log message containing an exception.
Dumps all captured log messages as a string if any log event with Error or more severe,
or with an exception, have been logged.
Whether any log events with specified minLevel or more severe have been logged.