@@ -48,37 +48,37 @@ export class LegacyLogMainService implements ILogService {
4848
4949 trace ( message : string , ...args : any [ ] ) : void {
5050 if ( this . level <= LogLevel . Trace ) {
51- console . log ( `\x1b[90m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , ...args ) ;
51+ console . log ( `\x1b[90m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , message , ...args ) ;
5252 }
5353 }
5454
5555 debug ( message : string , ...args : any [ ] ) : void {
5656 if ( this . level <= LogLevel . Debug ) {
57- console . log ( `\x1b[90m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , ...args ) ;
57+ console . log ( `\x1b[90m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , message , ...args ) ;
5858 }
5959 }
6060
6161 info ( message : string , ...args : any [ ] ) : void {
6262 if ( this . level <= LogLevel . Info ) {
63- console . log ( `\x1b[90m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , ...args ) ;
63+ console . log ( `\x1b[90m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , message , ...args ) ;
6464 }
6565 }
6666
6767 warn ( message : string | Error , ...args : any [ ] ) : void {
6868 if ( this . level <= LogLevel . Warning ) {
69- console . warn ( `\x1b[93m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , ...args ) ;
69+ console . warn ( `\x1b[93m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , message , ...args ) ;
7070 }
7171 }
7272
7373 error ( message : string , ...args : any [ ] ) : void {
7474 if ( this . level <= LogLevel . Error ) {
75- console . error ( `\x1b[91m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , ...args ) ;
75+ console . error ( `\x1b[91m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , message , ...args ) ;
7676 }
7777 }
7878
7979 critical ( message : string , ...args : any [ ] ) : void {
8080 if ( this . level <= LogLevel . Critical ) {
81- console . error ( `\x1b[90m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , ...args ) ;
81+ console . error ( `\x1b[90m[main ${ new Date ( ) . toLocaleTimeString ( ) } ]\x1b[0m` , message , ...args ) ;
8282 }
8383 }
8484}
0 commit comments