更新时间:2023-01-06 12:39:49
好吧,我似乎找到了一个相当不错的工作...我修改我的日志功能如下:
Well, I appear to have found a decent enough work around... I modified my logging function to the following:
function WriteToLog(msg, clear) {
try {
var now = new Date();
if (clear) {
console.clear();
}
console.log('(' + now.getTime() + ') - ' + msg);
} catch (e) {
}
}
这将获得自1970年1月1日以来的毫秒数...这应该是足够清楚的记录在任何计算机上我将拥有的任何进程在不久的将来。 :)
This will get the number of milliseconds since 1/1/1970... Which should be distinct enough for logging any process on any computer I will own in the near future. :)
它使日志更难读,并且这个值几乎没有用处...但是它足以区分默认的提示行为。
It makes the logs a little more difficult to read, and the value is pretty much useless... but it is distinct enough to circumvent the default tally behavior.
感谢您的关注。我希望我不是唯一一个严重不喜欢这个功能的人。
Thanks for looking. I hope I'm not the only one who seriously dislikes this feature.