(level, title, ...args)
| 140 | } |
| 141 | |
| 142 | #formatLogItem (level, title, ...args) { |
| 143 | // Only right timing logs to logfile if explicitly requests |
| 144 | if (level === log.KEYS.timing && !this.#timing) { |
| 145 | return null |
| 146 | } |
| 147 | |
| 148 | this.#fileLogCount += 1 |
| 149 | const prefix = [this.#totalLogCount++, level, title || null] |
| 150 | return formatWithOptions({ prefix, eol: os.EOL, colors: false }, ...args) |
| 151 | } |
| 152 | |
| 153 | #getLogFilePath (count = '') { |
| 154 | return `${this.#path}debug-${count}.log` |
no test coverage detected