/// <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); }
/// <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); }
/// <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); }