Example #1
0
 /// <summary>
 /// Serializes the exception and returns the serialzied text
 /// </summary>
 /// <param name="exception">The exception.</param>
 /// <param name="type">The log info type.</param>
 /// <returns>Serialized exception information</returns>
 /// <remarks>This method is designed to be overridden in subclasses</remarks>
 protected virtual string GetSerializedExceptionText(Exception exception, LogEventType type)
 {
     return(ExceptionHelper.GetExceptionText(exception));
 }