Add none mode to logging.date_display_mode
This commit is contained in:
parent
2a9de80848
commit
952312fbd3
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ class Log {
|
|||
}
|
||||
|
||||
log_raw(func, ...items) {
|
||||
if(this.settings.logging.date_display_mode == "none") {
|
||||
func(...items);
|
||||
return;
|
||||
}
|
||||
let prefix = (new Date()).toISOString();
|
||||
if(this.settings.logging.date_display_mode == "relative") {
|
||||
prefix = ((new Date() - this.start_time) / 1000).toFixed(4);
|
||||
|
|
Loading…
Reference in a new issue