(...logs)
| 832 | } |
| 833 | |
| 834 | warn(...logs) { |
| 835 | if (this.logLevels[this.logLevel] <= this.logLevels.warn) { |
| 836 | if (logs.length > 0) { |
| 837 | this.logs = [...this.logs, ...logs] |
| 838 | } |
| 839 | console.log( |
| 840 | `${this.logLevelPrefixs.warn}${logs.map((l) => l ?? String(l)).join(this.logSeparator)}` |
| 841 | ) |
| 842 | } |
| 843 | } |
| 844 | |
| 845 | error(...logs) { |
| 846 | if (this.logLevels[this.logLevel] <= this.logLevels.error) { |