/// <summary>
 /// Set the formater object that will be returned by the factory
 /// </summary>
 /// <param name="formater">The formater object to return</param>
 public static void SetFormater(IExceptionOutputFormater formater)
 {
     lock (ExceptionFormaterFactory.formaterLock) {
         ExceptionFormaterFactory.defaultFormater = formater;
     }
 }
예제 #2
0
 /// <summary>
 /// Set the style of format for the exception string information
 /// </summary>
 /// <param name="formater">The formater to use</param>
 public static void SetExceptionFormating(IExceptionOutputFormater formater)
 {
     ExceptionFormaterFactory.SetFormater(formater);
 }
 /// <summary>
 /// Set the formater object that will be returned by the factory
 /// </summary>
 /// <param name="formater">The formater object to return</param>
 public static void SetFormater(IExceptionOutputFormater formater)
 {
     lock (ExceptionFormaterFactory.formaterLock) {
         ExceptionFormaterFactory.defaultFormater = formater;
     }
 }