simpleConsolePrint function

void simpleConsolePrint(
  1. LogLevel level,
  2. String message,
  3. String? errorMessage,
  4. String? errorKind,
  5. StackTrace? stackTrace,
  6. Map<String, Object?> attributes,
)

Print all logs to the console in the form "level message" when kDebugMode is true.

Implementation

void simpleConsolePrint(
  LogLevel level,
  String message,
  String? errorMessage,
  String? errorKind,
  StackTrace? stackTrace,
  Map<String, Object?> attributes,
) {
  if (kDebugMode) {
    print('[${level.name}] $message');
  }
}