add note why spdlog is used in ext host

This commit is contained in:
Sandeep Somavarapu
2021-11-17 11:00:09 +01:00
parent 119b0ea23d
commit af67d7303c

View File

@@ -14,6 +14,7 @@ export class ExtHostLoggerService extends BaseExtHostLoggerService {
protected override doCreateLogger(resource: URI, logLevel: LogLevel, options?: ILoggerOptions): ILogger {
if (resource.scheme === Schemas.file) {
/* Create the logger in the Extension Host process to prevent loggers (log, output channels...) traffic over IPC */
return new SpdLogLogger(options?.name || generateUuid(), resource.fsPath, !options?.donotRotate, !!options?.donotUseFormatters, logLevel);
}
return super.doCreateLogger(resource, logLevel, options);