import 'dart:developer' as developer;

class LoggerService {
  static void log(String message, {String name = 'App'}) {
    developer.log(message, name: name);
  }

  static void error(
    String message, {
    String name = 'App',
    Object? error,
    StackTrace? stackTrace,
  }) {
    developer.log(
      message,
      name: name,
      error: error,
      stackTrace: stackTrace,
      level: 1000,
    );
  }

  static void info(String message, {String name = 'App'}) {
    developer.log(message, name: name, level: 800);
  }

  static void warning(String message, {String name = 'App'}) {
    developer.log(message, name: name, level: 900);
  }
}
