printLog function
Implementation
void printLog(dynamic message, {StackTrace? stackTrace}) {
bool showOnConsole = true;
if (showOnConsole) {
log("My Log :: ${message.toString()}");
if (stackTrace != null) {
log(stackTrace.toString());
}
}
}