Method CreateLogItemForException
CreateLogItemForException(Exception, LogItemKind, bool)
Creates a TreeControlItem for logging an exception.
public static TreeControlItem CreateLogItemForException(Exception e, LogItemKind kind = LogItemKind.Error, bool allowReplace = false)
Parameters
e
ExceptionThe exception to log.
kind
LogItemKindThe kind of log item. Default is Error.
allowReplace
boolIndicates whether replacing the last log item with the same text is allowed. Currently not implemented.
Returns
- TreeControlItem
A TreeControlItem representing the logged exception.