NetLensLog constructor
NetLensLog({
- required String message,
- DiagnosticLevel level = DiagnosticLevel.info,
- DateTime? timestamp,
- dynamic error,
- StackTrace? stackTrace,
Implementation
NetLensLog({
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.",
),
timestamp = (timestamp ?? DateTime.now()).toLocal();