log method

  1. @override
void log(
  1. String level,
  2. String msg, {
  3. String? tag,
  4. dynamic ex,
  5. StackTrace? stacktrace,
})
override

Logs a message with level/tag and optional stacktrace or exception.

Implementation

@override

/// Logs a message with level/tag and optional stacktrace or exception.
void log(
  String level,
  String msg, {
  String? tag,
  dynamic ex,
  StackTrace? stacktrace,
}) {
  LogLineInfo logTag;
  logTag = LogTree.getLogLineInfo();
  if (tag != null) {
    logTag.tag = tag;
  }
  _printFormattedLog(level, msg, logTag, ex, stacktrace);
}