logger.dart 1013 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import 'package:logger/logger.dart';
  2. Logger logger = Logger();
  3. void logd(
  4. dynamic message, {
  5. DateTime? time,
  6. Object? error,
  7. StackTrace? stackTrace,
  8. }) {
  9. logger.d(message, time: time, error: error, stackTrace: stackTrace);
  10. }
  11. void logi(
  12. dynamic message, {
  13. DateTime? time,
  14. Object? error,
  15. StackTrace? stackTrace,
  16. }) {
  17. logger.i(message, time: time, error: error, stackTrace: stackTrace);
  18. }
  19. void loge(
  20. dynamic message, {
  21. DateTime? time,
  22. Object? error,
  23. StackTrace? stackTrace,
  24. }) {
  25. logger.e(message, time: time, error: error, stackTrace: stackTrace);
  26. }
  27. void logw(
  28. dynamic message, {
  29. DateTime? time,
  30. Object? error,
  31. StackTrace? stackTrace,
  32. }) {
  33. logger.w(message, time: time, error: error, stackTrace: stackTrace);
  34. }
  35. void logf(
  36. dynamic message, {
  37. DateTime? time,
  38. Object? error,
  39. StackTrace? stackTrace,
  40. }) {
  41. logger.f(message, time: time, error: error, stackTrace: stackTrace);
  42. }