Log.Error(category, message)
Generates an error message passed in the second argument and associates it with the category passed in the first argument.
static void Error(string category, string message);
Arguments
-
category
(string) - The message category.
message
(string)- The message to generate.
Example
Log.Error("CustomCategory", "This is an error message");