trace method
dynamic
trace(
- dynamic message, {
- String? prefix,
- dynamic error,
- StackTrace? stackTrace,
- int? maxChars,
- bool isJson = false,
- int? fileLinkLevel,
override
method trace
Implementation
@override
trace(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\n${stackTrace ?? StackTrace.current}',
LogType.trace);
_logger.log(formattedMessage,
tag: 'TRACE',
stackTrace: stackTrace ?? StackTrace.current,
level: _Level.trace,
fileLinkLevel: fileLinkLevel);
} catch (_) {}
}