This commit is contained in:
2026-06-03 14:07:10 +08:00
parent 3bdece45c3
commit 9eb8d1cc37
118 changed files with 5689 additions and 2 deletions

View File

@@ -0,0 +1,20 @@
import 'package:flutter/foundation.dart';
class AppLogger {
AppLogger._();
static void debug(Object? message, {Object? error, StackTrace? stackTrace}) {
if (!kDebugMode) return;
debugPrint('[DEBUG] $message');
if (error != null) debugPrint('[ERROR] $error');
if (stackTrace != null) debugPrint(stackTrace.toString());
}
static void info(Object? message) {
if (kDebugMode) debugPrint('[INFO] $message');
}
static void warning(Object? message) {
if (kDebugMode) debugPrint('[WARN] $message');
}
}