showLog method
展示日志
Implementation
void showLog(String s, DateTime t, Frame f, WLogLevel l, {int? wrapWidth}) {
String head = "$t";
if (_config.isWithLevel) head += "-${l.name}";
if (_config.isWithFrame) head += " ${f.location}";
if (_config.isWithFileName) head += " ${f.uri.path}";
if (_config.isWithMethodName) head += " ${f.member}";
debugPrint(head);
if (wrapWidth != null) {
debugPrint(s, wrapWidth: wrapWidth);
return;
}
if (s.length > _config.debugPrintWrapWidth &&
defaultTargetPlatform == TargetPlatform.android) {
debugPrint("==Long String Print T${t.microsecondsSinceEpoch}======Start");
debugPrint(s, wrapWidth: _config.debugPrintWrapWidth);
debugPrint("==Long String Print T${t.microsecondsSinceEpoch}========End");
return;
}
debugPrint(s);
}