global.dart 401 B

123456789101112131415161718
  1. import 'dart:developer';
  2. import 'package:logging/logging.dart';
  3. export 'utils/core.dart';
  4. export 'theme.dart';
  5. final logger = Logger.root
  6. ..onRecord.listen((record) {
  7. log(
  8. record.message,
  9. time: record.time,
  10. level: record.level.value,
  11. error: record.error,
  12. stackTrace: record.stackTrace,
  13. sequenceNumber: record.sequenceNumber,
  14. );
  15. });