public static void Write(Cxt cxt, Exception ex, string message) { if (ex == null) { ex = new Exception("Exception object was null. Using this dummy as replacement."); } Write(cxt, Log.Error, Log.System, AppException.GetError(ex, message)); }