Add newline after log
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import logger, {Level, type Writer, type WriterOptions} from 'log'
|
||||
import {type FileSink, file} from 'bun'
|
||||
import os from 'os'
|
||||
|
||||
export * as log from 'log'
|
||||
export default logger
|
||||
@@ -16,6 +17,7 @@ export class File implements Writer {
|
||||
|
||||
public log(_level: Level, ...data: any[]) : void {
|
||||
for (const block of data) this.sink.write(block)
|
||||
this.sink.write(os.EOL)
|
||||
}
|
||||
|
||||
public end() : number | Promise<number> {
|
||||
|
||||
Reference in New Issue
Block a user