p static method
static method to print debug logs of eventizer Package
format is simple time, type of tag
or tag
if it is strign, message msg
Implementation
static p(int logLevel, dynamic tag, String msg) {
if (logLevel <= kLogDebugLevel) {
switch (logLevel) {
case Log.Error:
print(
'$_magentaColorCode${_curTime()}: $_redColorCode${_getTag(tag)}:\t${_getMsg(msg)}$_resetColorCode');
break;
case Log.Debug:
print(
'$_magentaColorCode${_curTime()}: $_cyanColorCode${_getTag(tag)}:\t${_getMsg(msg)}$_resetColorCode');
break;
case Log.Info:
print(
'$_magentaColorCode${_curTime()}: $_greyColorCode${_getTag(tag)}:\t${_getMsg(msg)}$_resetColorCode');
break;
}
}
}