forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
37 lines (31 loc) · 860 Bytes
/
types.ts
File metadata and controls
37 lines (31 loc) · 860 Bytes
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
/* eslint-disable @typescript-eslint/ban-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
export type Arguments = unknown[];
export enum LogLevel {
Off = 0,
Trace = 1,
Debug = 2,
Info = 3,
Warning = 4,
Error = 5,
}
export interface ILogging {
traceLog(...data: Arguments): void;
traceError(...data: Arguments): void;
traceWarn(...data: Arguments): void;
traceInfo(...data: Arguments): void;
traceVerbose(...data: Arguments): void;
}
export type TraceDecoratorType = (
_: Object,
__: string,
descriptor: TypedPropertyDescriptor<any>,
) => TypedPropertyDescriptor<any>;
// The information we want to log.
export enum TraceOptions {
None = 0,
Arguments = 1,
ReturnValue = 2,
}