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
eExceptionThe exception to log.
kindLogItemKindThe kind of log item. Default is Error.
allowReplaceboolIndicates whether replacing the last log item with the same text is allowed. Currently not implemented.
Returns
- TreeControlItem
A TreeControlItem representing the logged exception.