Todo summary

This commit is contained in:
Sewmina
2022-04-07 19:07:07 +05:30
parent 7aa8712c16
commit a5145a2527
5 changed files with 105 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
class Debug{
static bool enableLogging = true;
static bool enableResponseLogging = true;
static bool enableResponseLogging = false;
static bool enableErrorLoggin = true;
static bool enableTestLogging = true;
static void LogResponse(Object? response, {Object src= ''}){
if(!enableLogging){return;}
@@ -16,8 +17,14 @@ class Debug{
}
static void Log(Object? msg){
if(!enableErrorLoggin) {return;}
if(!enableLogging) {return;}
print('\x1B[36m$msg\x1B[0m');
}
static void LogTest(Object? msg){
if(!enableLogging){return;}
if(!enableTestLogging) {return;}
print('\x1B[35m$msg\x1B[0m');
}
}