e method
dynamic
e(
- dynamic message, {
- dynamic error,
- String? prefix,
- StackTrace? stackTrace,
- int? maxChars,
- bool isJson = false,
- 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 (_) {}
}