Skip to content

Commit 768399b

Browse files
author
Matt Bierner
committed
Revert "Pick up new spdlog version"
This reverts commit d011a0a.
1 parent d011a0a commit 768399b

3 files changed

Lines changed: 45 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"nsfw": "1.2.5",
4646
"onigasm-umd": "^2.2.2",
4747
"semver-umd": "^5.5.3",
48-
"spdlog": "^0.11.1",
48+
"spdlog": "^0.9.0",
4949
"sudo-prompt": "9.0.0",
5050
"v8-inspect-profiler": "^0.0.20",
5151
"vscode-minimist": "^1.2.1",

src/typings/spdlog.d.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
declare module 'spdlog' {
7+
8+
export const version: string;
9+
export function setAsyncMode(bufferSize: number, flushInterval: number): void;
10+
export function createRotatingLogger(name: string, filename: string, filesize: number, filecount: number): RotatingLogger;
11+
export function createRotatingLoggerAsync(name: string, filename: string, filesize: number, filecount: number): Promise<RotatingLogger>;
12+
13+
export enum LogLevel {
14+
CRITICAL,
15+
ERROR,
16+
WARN,
17+
INFO,
18+
DEBUG,
19+
TRACE,
20+
OFF
21+
}
22+
23+
export class RotatingLogger {
24+
constructor(name: string, filename: string, filesize: number, filecount: number);
25+
26+
trace(message: string): void;
27+
debug(message: string): void;
28+
info(message: string): void;
29+
warn(message: string): void;
30+
error(message: string): void;
31+
critical(message: string): void;
32+
setLevel(level: number): void;
33+
clearFormatters(): void;
34+
/**
35+
* A synchronous operation to flush the contents into file
36+
*/
37+
flush(): void;
38+
drop(): void;
39+
}
40+
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7782,10 +7782,10 @@ sparkles@^1.0.0:
77827782
resolved "https://registry.yarnpkg.com/sparkles/-/sparkles-1.0.0.tgz#1acbbfb592436d10bbe8f785b7cc6f82815012c3"
77837783
integrity sha1-Gsu/tZJDbRC76PeFt8xvgoFQEsM=
77847784

7785-
spdlog@^0.11.1:
7786-
version "0.11.1"
7787-
resolved "https://registry.yarnpkg.com/spdlog/-/spdlog-0.11.1.tgz#29721b31018a5fe6a3ce2531f9d8d43e0bd6b825"
7788-
integrity sha512-M+sg9/Tnr0lrfnW2/hqgpoc4Z8Jzq7W8NUn35iiSslj+1uj1pgutI60MCpulDP2QyFzOpC8VsJmYD6Fub7wHoA==
7785+
spdlog@^0.9.0:
7786+
version "0.9.0"
7787+
resolved "https://registry.yarnpkg.com/spdlog/-/spdlog-0.9.0.tgz#c85dd9d0b9cd385f6f3f5b92dc9d2e1691092b5c"
7788+
integrity sha512-AeLWPCYjGi4w5DfpXFKb9pCdgMe4gFBMroGfgwXiNfzwmcNYGoFQkIuD1MChZBR1Iwrx0nGhsTSHFslt/qfTAQ==
77897789
dependencies:
77907790
bindings "^1.5.0"
77917791
mkdirp "^0.5.1"

0 commit comments

Comments
 (0)