|
@@ -65,6 +65,21 @@ namespace iiie.Logs.DataAccess
|
65
|
65
|
}
|
66
|
66
|
}
|
67
|
67
|
|
|
68
|
+ /// <summary>
|
|
69
|
+ /// Log an exception
|
|
70
|
+ /// </summary>
|
|
71
|
+ /// <param name="e">The exception to be logged</param>
|
|
72
|
+ public static void Log(Exception e)
|
|
73
|
+ {
|
|
74
|
+ LogOpResult(OpResult<int>.Error(ResultStatus.InternalError, e));
|
|
75
|
+ }
|
|
76
|
+
|
|
77
|
+ /// <summary>
|
|
78
|
+ /// Log an OpResult
|
|
79
|
+ /// </summary>
|
|
80
|
+ /// <typeparam name="T">User data type</typeparam>
|
|
81
|
+ /// <param name="result">The result to be logged</param>
|
|
82
|
+ /// <returns>The OpResult</returns>
|
68
|
83
|
public static OpResult<T> LogOpResult<T>(OpResult<T> result)
|
69
|
84
|
{
|
70
|
85
|
string message = "Location:\n";
|