Exemplo n.º 1
0
 /* Print data object in detail */
 public static void Error(object obj, Type _type, MethodBase _method, Exception ex)
 {
     if (creditcardLog.IsErrorEnabled)
     {
         if (obj != null)
         {
             creditcardLog.Error(string.Format("{0}:{1}:{2}[{2}{3}{2}]", _type.Name, _method.Name, Environment.NewLine, DataObjectHandler.SerializeObjToXmlString(obj)), ex);
         }
         else
         {
             creditcardLog.Error(string.Format("{0}:{1}:[]", _type.Name, _method.Name), ex);
         }
     }
 }