w method
dynamic
w(
- dynamic message, {
- String? prefix,
- dynamic error,
- StackTrace? stackTrace,
- int? maxChars,
- bool isJson = false,
- int? fileLinkLevel,
override
method w
Implementation
@override
w(dynamic message,
{String? prefix,
dynamic error,
StackTrace? stackTrace,
int? maxChars,
bool isJson = false,
int? fileLinkLevel}) {
try {
final formattedMessage = _formatMessage(
isJson ? jsonFormat(message) : message,
prefix ?? _prefix,
maxChars,
isJson);
intercept(formattedMessage, LogType.warn);
_logger.log(formattedMessage,
tag: 'W', level: _Level.warn, fileLinkLevel: fileLinkLevel);
} catch (_) {}
}