error static method
Logs an error message, optionally with a stack trace.
Use for errors that affect functionality but don't crash the application. When a stack trace is provided, it will be formatted and included in the output.
@param message The error message to log @param stackTrace Optional stack trace to include with the error
Implementation
static void error(String message) {
_instance.log(LogLevel.error, message);
}