AliceLog constructor
AliceLog({
- required String message,
- DiagnosticLevel level = DiagnosticLevel.info,
- DateTime? timestamp,
- dynamic error,
- StackTrace? stackTrace,
Implementation
AliceLog({
required this.message,
this.level = DiagnosticLevel.info,
DateTime? timestamp,
this.error,
this.stackTrace,
}) : assert(
level != DiagnosticLevel.off,
"`DiagnosticLevel.off` is a '[special] level indicating that no "
"diagnostics should be shown' and should not be used as a value."),
assert(timestamp == null || !timestamp.isUtc, 'Invalid timestamp'),
timestamp = timestamp ?? DateTime.now();