logWarning method
Use logWarning
to produce a log that requires a special level
of attention, since it might indicate an unexpected situation,
or something that should not happen
message
is the most important piece of the log, and extras
are attached information that can be added to expand the meaning
and context of your log.
Implementation
@override
void logWarning(String message, [Map<String, String>? extras]) {
final data = _baseData;
data['level'] = 'WARN';
data['message'] = message;
data['extras'] = extras;
_sendLog(data);
}