forked from microsoft/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspdlog.d.ts
38 lines (33 loc) · 1005 Bytes
/
spdlog.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare module 'spdlog' {
export const version: string;
export function setAsyncMode(bufferSize: number, flushInterval: number);
export enum LogLevel {
CRITICAL,
ERROR,
WARN,
INFO,
DEBUG,
TRACE,
OFF
}
export class RotatingLogger {
constructor(name: string, filename: string, filesize: number, filecount: number);
trace(message: string);
debug(message: string);
info(message: string);
warn(message: string);
error(message: string);
critical(message: string);
setLevel(level: number);
clearFormatters();
/**
* A synchronous operation to flush the contents into file
*/
flush(): void;
drop(): void;
}
}