public XmlLogEntry(Exception ex) { this.level = LogLevel.Error; this.message = ex.Message; this.exception = XmlException.FromException(ex); }