* Write raw output without any prefix (timestamp, level, tag). * Useful for streaming CLI output where the prefix would be noise.
(message: string)
| 117 | * Useful for streaming CLI output where the prefix would be noise. |
| 118 | */ |
| 119 | public raw(message: string): void { |
| 120 | try { |
| 121 | console.log(message) |
| 122 | |
| 123 | if (this.logStream) { |
| 124 | this.logStream.write(message + "\n") |
| 125 | } |
| 126 | } catch (error) { |
| 127 | console.error(`Failed to write to log file ${this.logFilePath}:`, error) |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | public close(): void { |
| 132 | if (this.logStream) { |
no test coverage detected