w method

  1. @override
dynamic w(
  1. dynamic message, {
  2. String? prefix,
  3. dynamic error,
  4. StackTrace? stackTrace,
  5. int? maxChars,
  6. bool isJson = false,
  7. 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 (_) {}
}