From ebfbaf012609018cc92bbd1a9dc69973339f0666 Mon Sep 17 00:00:00 2001 From: "mr.mojtaba" Date: Wed, 16 Apr 2025 10:10:02 +0330 Subject: [PATCH] chore : check debug mode --- packages/core/lib/data/utils.dart | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/packages/core/lib/data/utils.dart b/packages/core/lib/data/utils.dart index fbaf1a8..c7a1250 100644 --- a/packages/core/lib/data/utils.dart +++ b/packages/core/lib/data/utils.dart @@ -1,22 +1,37 @@ +import 'package:flutter/foundation.dart'; import 'package:logger/logger.dart'; import 'package:rasadyar_core/infrastructure/di/di.dart'; void iLog(dynamic message) { - di.get().i(message.toString()); + if(kDebugMode){ + di.get().i(message.toString()); + } } void eLog(dynamic message) { + if(kDebugMode){ di.get().e(message.toString()); + } } + void dLog(dynamic message) { + if(kDebugMode){ di.get().d(message.toString()); + } } -void fLog(dynamic message) { + +void fLog(dynamic message){ + if(kDebugMode){ di.get().f(message.toString()); + } } + void tLog(dynamic message) { + if(kDebugMode){ di.get().t(message.toString()); + } } +