@@ -62,7 +62,7 @@ export class LogFunctionLogger extends Disposable implements ILogger {
6262
6363 setConnection ( connection : Connection ) {
6464 this . _connection = connection ;
65- this . log ( LogLevel . Debug , 'LSP is now connected' ) ;
65+ this . logInfo ( 'LSP is now connected' ) ;
6666 }
6767
6868 setConfigurationManager ( config : ConfigurationManager ) {
@@ -104,12 +104,27 @@ export class LogFunctionLogger extends Disposable implements ILogger {
104104 }
105105 }
106106
107- public logNotification ( method : string ) {
108- this . log ( LogLevel . Trace , `Got notification: '${ method } '` ) ;
107+ public logTrace ( message : string , data ?: Record < string , unknown > ) : void {
108+ this . log ( LogLevel . Trace , message , data ) ;
109+ }
110+ public logDebug ( message : string , data ?: Record < string , unknown > ) : void {
111+ this . log ( LogLevel . Debug , message , data ) ;
112+ }
113+ public logInfo ( message : string , data ?: Record < string , unknown > ) : void {
114+ this . log ( LogLevel . Info , message , data ) ;
115+ }
116+ public logWarn ( message : string , data ?: Record < string , unknown > ) : void {
117+ this . log ( LogLevel . Warn , message , data ) ;
118+ }
119+ public logError ( message : string , data ?: Record < string , unknown > ) : void {
120+ this . log ( LogLevel . Error , message , data ) ;
109121 }
110122
111- public logRequest ( method : string ) {
112- this . log ( LogLevel . Trace , `Got request: '${ method } '` ) ;
123+ public logNotification ( method : string , data ?: Record < string , unknown > ) {
124+ this . logTrace ( `Got notification: '${ method } '` , data ) ;
125+ }
126+ public logRequest ( method : string , data ?: Record < string , unknown > ) {
127+ this . logTrace ( `Got request: '${ method } '` , data ) ;
113128 }
114129
115130 private toLevelLabel ( level : LogLevel ) : string {
0 commit comments