protected virtual void OnLoggedException(Exception ex) { if ((object)LoggedException != null) LoggedException(this, new EventArgs<Exception>(ex)); }