(...logs)
| 843 | } |
| 844 | |
| 845 | error(...logs) { |
| 846 | if (this.logLevels[this.logLevel] <= this.logLevels.error) { |
| 847 | if (logs.length > 0) { |
| 848 | this.logs = [...this.logs, ...logs] |
| 849 | } |
| 850 | console.log( |
| 851 | `${this.logLevelPrefixs.error}${logs.map((l) => l ?? String(l)).join(this.logSeparator)}` |
| 852 | ) |
| 853 | } |
| 854 | } |
| 855 | |
| 856 | log(...logs) { |
| 857 | if (logs.length > 0) { |