LogError

Method

LogError has 2 overloads.

LogError(string, Exception, Dictionary<string, object>)

Logs an error to the console, nicely formatted.

Definition

void LogError(string message, Exception exception = null, Dictionary<string, object> data = null)
void LogError(string message, Exception exception = null, Dictionary<string, object> data = null)

Parameters

ParameterDescription
string message

The error message

Exception exception

Optional exception to log

Dictionary<string, object> data

Optional additional data

LogError(Exception, Dictionary<string, object>)

Logs an error to the console, nicely formatted.

Definition

void LogError(Exception exception, Dictionary<string, object> data = null)
void LogError(Exception exception, Dictionary<string, object> data = null)

Parameters

ParameterDescription
Exception exception

The exception to log

Dictionary<string, object> data

Optional additional data