LogContext constructor

LogContext({
  1. required Level level,
  2. required String message,
  3. required DateTime timestamp,
  4. required String scope,
  5. dynamic throwable,
  6. StackTrace? stackTrace,
})

Creates a new LogContext. level is the severity level of the log. message is the log message. timestamp is the timestamp of the log entry. scope is the scope of the log. throwable is the associated error or exception, if any. stackTrace is the associated stack trace, if any.

Implementation

LogContext({
  required this.level,
  required this.message,
  required this.timestamp,
  required this.scope,
  this.throwable,
  this.stackTrace,
});