Update spdlog, affects #121513

This commit is contained in:
Raymond Zhao
2021-05-05 12:58:58 -07:00
parent 9ff7c93a9b
commit 2d2de1920b
5 changed files with 18 additions and 31 deletions

View File

@@ -16,14 +16,13 @@ import { IExtHostRpcService } from 'vs/workbench/api/common/extHostRpcService';
import { MutableDisposable } from 'vs/base/common/lifecycle';
import { ILogService } from 'vs/platform/log/common/log';
import { createRotatingLogger } from 'vs/platform/log/node/spdlogLog';
import { RotatingLogger } from 'spdlog';
import { Logger } from 'spdlog';
import { ByteSize } from 'vs/platform/files/common/files';
class OutputAppender {
private appender: Logger;
private appender: RotatingLogger;
constructor(name: string, readonly file: string) {
constructor(readonly name: string, readonly file: string) {
this.appender = createRotatingLogger(name, file, 30 * ByteSize.MB, 1);
this.appender.clearFormatters();
}