mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
- clear formatters while creating the spdlog logger
- fix name of the logger
This commit is contained in:
@@ -14,11 +14,7 @@ export class ExtHostLoggerService extends BaseExtHostLoggerService {
|
||||
|
||||
protected override doCreateLogger(resource: URI, logLevel: LogLevel, options?: ILoggerOptions): ILogger {
|
||||
if (resource.scheme === Schemas.file) {
|
||||
const logger = new SpdLogLogger(options?.name || generateUuid(), resource.fsPath, !options?.donotRotate, logLevel);
|
||||
if (options?.donotUseFormatters) {
|
||||
(<SpdLogLogger>logger).clearFormatters();
|
||||
}
|
||||
return logger;
|
||||
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