warning function
Logs message with LogSeverity.warning severity.
Example:
logger.warning(
'Slow network request detected',
{'url': 'https://api.example.com/data', 'latencyMs': 1500},
);
Implementation
void warning(
String message, [
Map<String, dynamic> payload = const {},
StackTrace? stackTrace,
]) => write(LogSeverity.warning, message, payload, stackTrace);