chore : check debug mode
This commit is contained in:
@@ -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) {
|
||||
if(kDebugMode){
|
||||
di.get<Logger>().i(message.toString());
|
||||
}
|
||||
}
|
||||
|
||||
void eLog(dynamic message) {
|
||||
if(kDebugMode){
|
||||
di.get<Logger>().e(message.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void dLog(dynamic message) {
|
||||
if(kDebugMode){
|
||||
di.get<Logger>().d(message.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void fLog(dynamic message){
|
||||
if(kDebugMode){
|
||||
di.get<Logger>().f(message.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void tLog(dynamic message) {
|
||||
if(kDebugMode){
|
||||
di.get<Logger>().t(message.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user