コード例 #1
0
 /// <summary>
 /// Logs an exception to the console with detailed exception information
 /// </summary>
 /// <param name="head"></param>
 /// <param name="description"></param>
 /// <param name="date"></param>
 /// <param name="exception"></param>
 public void LogException(Exception exception, LogSeverity severity = LogSeverity.Warning)
 {
     LogMessageCallback?.Invoke(DateTime.Now, Name, "An exception has occoured", exception, severity);
 }
コード例 #2
0
 /// <summary>
 /// Logs an exception to the console with detailed exception information
 /// </summary>
 /// <param name="head"></param>
 /// <param name="description"></param>
 /// <param name="date"></param>
 /// <param name="exception"></param>
 public void LogException(string information, Exception exception, LogSeverity severity = LogSeverity.Warning)
 {
     LogMessageCallback?.Invoke(DateTime.Now, Name, information, exception, severity);
 }
コード例 #3
0
 /// <summary>
 /// Logs the information
 /// </summary>
 /// <param name="information"></param>
 public void Log(string head, string information, LogSeverity severity = LogSeverity.Information)
 {
     LogMessageCallback?.Invoke(DateTime.Now, head, information, null, severity);
 }