File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " git-json-resolver " : patch
3+ ---
4+
5+ Fix logger
Original file line number Diff line number Diff line change @@ -66,12 +66,11 @@ export const createLogger = (config: LoggerConfig = {}) => {
6666
6767 const flush = ( ) => {
6868 if ( mode === "memory" ) {
69+ const timestamp = new Date ( ) . toISOString ( ) . replace ( / : / g, "-" ) ;
6970 for ( const [ fileId , entries ] of buffers . entries ( ) ) {
7071 const filePath = path . join (
7172 logDir ,
72- singleFile
73- ? `combined-${ new Date ( ) . toISOString ( ) } .log`
74- : `${ fileId } -${ new Date ( ) . toISOString ( ) } .log` ,
73+ singleFile ? `combined-${ timestamp } .log` : `${ fileId } -${ timestamp } .log` ,
7574 ) ;
7675 const lines = entries . map ( e => `[${ e . timestamp } ] [${ e . level . toUpperCase ( ) } ] ${ e . message } ` ) ;
7776 fs . writeFileSync ( filePath , lines . join ( "\n" ) + "\n" , { flag : "a" } ) ;
You can’t perform that action at this time.
0 commit comments