Description
The LogLevel.Error
field is a member of the LogLevel
enumeration in the Sandbox namespace. It represents a logging level used to indicate error messages. This level is typically used to log information about issues that have occurred during the execution of an application, which may require attention or intervention.
Usage
Use LogLevel.Error
when you want to log messages that describe errors or exceptions that have occurred in your application. This level is suitable for capturing issues that are critical and need to be addressed to ensure the application runs smoothly.
Example
// Example of using LogLevel.Error in a logging function
public void LogError(string message)
{
Logger.Log(LogLevel.Error, message);
}