warning static method
Logs a warning message.
category: The category of the log.message: The message to log.environment: Optional environment context.
Returns: A LogError indicating success or failure.
Implementation
static LogError warning(String category, String message,
{String? environment}) =>
log(category, message,
environment: environment ?? '', level: LogLevel.warning);