e method

  1. @override
dynamic e(
  1. dynamic message, {
  2. dynamic error,
  3. String? prefix,
  4. StackTrace? stackTrace,
  5. int? maxChars,
  6. bool isJson = false,
  7. int? fileLinkLevel,
})
override

method e

Implementation

@override
e(dynamic message,
    {dynamic error,
    String? prefix,
    StackTrace? stackTrace,
    int? maxChars,
    bool isJson = false,
    int? fileLinkLevel}) {
  try {
    final formattedMessage = _formatMessage(
        isJson ? jsonFormat(message) : message,
        prefix ?? _prefix,
        maxChars,
        isJson);

    intercept('$formattedMessage' '\n${error ?? ''}' '\n${stackTrace ?? ''}',
        LogType.error);

    _logger.log(formattedMessage,
        tag: 'E',
        error: error,
        stackTrace: stackTrace,
        level: _Level.error,
        fileLinkLevel: fileLinkLevel);
  } catch (_) {}
}