LogEntry constructor

LogEntry({
  1. required LogLevel level,
  2. required String message,
  3. String tag = 'default',
  4. LogSource source = LogSource.custom,
  5. DateTime? timestamp,
  6. StackTrace? stackTrace,
  7. Object? error,
  8. Map<String, dynamic>? extra,
  9. String? threadId,
  10. bool suppressConsole = false,
  11. int seq = 0,
})

Implementation

LogEntry({
  required this.level,
  required this.message,
  this.tag = 'default',
  this.source = LogSource.custom,
  DateTime? timestamp,
  this.stackTrace,
  this.error,
  Map<String, dynamic>? extra,
  this.threadId,
  this.suppressConsole = false,
  this.seq = 0,
})  : extra = extra == null ? null : Map<String, dynamic>.unmodifiable(extra),
      timestamp = timestamp ?? DateTime.now();