@@ -16,11 +16,13 @@ import { parseMainProcessArgv } from "vs/platform/environment/node/argvHelper";
1616import { ParsedArgs } from "vs/platform/environment/common/environment" ;
1717import { EnvironmentService } from "vs/platform/environment/node/environmentService" ;
1818import { InstantiationService } from "vs/platform/instantiation/common/instantiationService" ;
19- import { ConsoleLogMainService } from "vs/platform/log/common/log" ;
19+ import { getLogLevel } from "vs/platform/log/common/log" ;
2020import { LogLevelSetterChannel } from "vs/platform/log/common/logIpc" ;
21+ import { SpdLogService } from "vs/platform/log/node/spdlogService" ;
2122import { IProductConfiguration } from "vs/platform/product/common/product" ;
2223import { ConnectionType } from "vs/platform/remote/common/remoteAgentConnection" ;
2324import { REMOTE_FILE_SYSTEM_CHANNEL_NAME } from "vs/platform/remote/common/remoteAgentFileSystemChannel" ;
25+ import { RemoteExtensionLogFileName } from "vs/workbench/services/remote/common/remoteAgentService" ;
2426import { IWorkbenchConstructionOptions } from "vs/workbench/workbench.web.api" ;
2527
2628import { Connection , Server as IServer } from "vs/server/connection" ;
@@ -112,8 +114,11 @@ export class Server implements IServer {
112114
113115 this . environmentService = new EnvironmentService ( args , process . execPath ) ;
114116
115- // TODO: might want to use spdlog.
116- const logService = new ConsoleLogMainService ( ) ;
117+ const logService = new SpdLogService (
118+ RemoteExtensionLogFileName ,
119+ this . environmentService . logsPath ,
120+ getLogLevel ( this . environmentService ) ,
121+ ) ;
117122 this . ipc . registerChannel ( "loglevel" , new LogLevelSetterChannel ( logService ) ) ;
118123
119124 const instantiationService = new InstantiationService ( ) ;
0 commit comments