message method

void message(
  1. String msg,
  2. Severity severity,
  3. Error? e, {
  4. String? func,
  5. String? file,
  6. int? line,
  7. String? className,
})

Implementation

void message(String msg, Severity severity, Error? e, {String? func, String? file, int? line, String? className}){
  if (severity.index > _severity.index ) return;
  final stackTraceString = severity.index <= _callStackSeverity.index ? StackTrace.current.toString() : null;
  final stackTrace = StackTraceParser.parse(stackTraceString);
  final message = Message(msg, severity, tag, stackTrace, e, func, file, line);
  LogManager().push(message);
}