print method
Implementation
void print(Object object, [ LogColor? color ]) {
String begin, end;
if (color != null) {
begin = escForColor(color);
end = resetEsc;
} else {
begin = '';
end = '';
}
if (shouldLog) {
_internalPrint(begin + nextIndent + object.toString() + end);
}
}