mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
add note why spdlog is used in ext host
This commit is contained in:
@@ -14,6 +14,7 @@ export class ExtHostLoggerService extends BaseExtHostLoggerService {
|
|||||||
|
|
||||||
protected override doCreateLogger(resource: URI, logLevel: LogLevel, options?: ILoggerOptions): ILogger {
|
protected override doCreateLogger(resource: URI, logLevel: LogLevel, options?: ILoggerOptions): ILogger {
|
||||||
if (resource.scheme === Schemas.file) {
|
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 new SpdLogLogger(options?.name || generateUuid(), resource.fsPath, !options?.donotRotate, !!options?.donotUseFormatters, logLevel);
|
||||||
}
|
}
|
||||||
return super.doCreateLogger(resource, logLevel, options);
|
return super.doCreateLogger(resource, logLevel, options);
|
||||||
|
|||||||
Reference in New Issue
Block a user