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');
  }
}
