LogRecord constructor

LogRecord({
  1. required int level,
  2. required dynamic message,
  3. required String scope,
  4. StackTrace? stackTrace,
})

Implementation

LogRecord({
  required this.level,
  required this.message,
  required this.scope,
  this.stackTrace,
})  : time = DateTime.now(),
      zone = Zone.current,
      id = _counter++;