mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +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 {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user