Files
rasadyar_application/packages/core/lib/data/utils.dart

38 lines
634 B
Dart
Raw Normal View History

2025-04-16 10:10:02 +03:30
import 'package:flutter/foundation.dart';
import 'package:logger/logger.dart';
2025-05-11 11:49:51 +03:30
import 'package:rasadyar_core/injection/di.dart';
void iLog(dynamic message) {
2025-04-16 10:10:02 +03:30
if(kDebugMode){
2025-05-11 11:49:51 +03:30
diCore.get<Logger>().i(message.toString());
2025-04-16 10:10:02 +03:30
}
}
void eLog(dynamic message) {
2025-04-16 10:10:02 +03:30
if(kDebugMode){
2025-05-11 11:49:51 +03:30
diCore.get<Logger>().e(message.toString());
2025-04-16 10:10:02 +03:30
}
}
2025-04-16 10:10:02 +03:30
void dLog(dynamic message) {
2025-04-16 10:10:02 +03:30
if(kDebugMode){
2025-05-11 11:49:51 +03:30
diCore.get<Logger>().d(message.toString());
2025-04-16 10:10:02 +03:30
}
}
2025-04-16 10:10:02 +03:30
void fLog(dynamic message){
if(kDebugMode){
2025-05-11 11:49:51 +03:30
diCore.get<Logger>().f(message.toString());
2025-04-16 10:10:02 +03:30
}
}
2025-04-16 10:10:02 +03:30
void tLog(dynamic message) {
2025-04-16 10:10:02 +03:30
if(kDebugMode){
2025-05-11 11:49:51 +03:30
diCore.get<Logger>().t(message.toString());
2025-04-16 10:10:02 +03:30
}
}
2025-04-16 10:10:02 +03:30