LogEntry constructor

LogEntry(
  1. {required LogLevel logLevel,
  2. required String message,
  3. DateTime? timeStamp,
  4. Map<String, dynamic>? data,
  5. Object? error,
  6. StackTrace? stackTrace,
  7. String? source,
  8. String? loggerName}
)

Implementation

LogEntry({
  required this.logLevel,
  required this.message,
  DateTime? timeStamp,
  this.data,
  this.error,
  this.stackTrace,
  this.source,
  this.loggerName,
}) {
  this.timeStamp = timeStamp ?? DateTime.now();
}