1 | import ILoggerStrategy, { LogLevels } from "./ILoggerStrategy";
|
2 | /**
|
3 | * A logger strategy can log to Visual Studio Code channel.
|
4 | *
|
5 | * @export
|
6 | * @class VSCChannelLoggerStrategy
|
7 | * @implements {ILoggerStrategy}
|
8 | */
|
9 | export default class VSCChannelLoggerStrategy implements ILoggerStrategy {
|
10 | readonly channelName: string;
|
11 | readonly level: LogLevels;
|
12 | private readonly channel;
|
13 | /**
|
14 | * Creates an instance of VSCChannelLoggerStrategy.
|
15 | *
|
16 | * @param {string} channelName Log to specific channel
|
17 | * @param {LogLevels} [level=LogLevels.Debug]
|
18 | * @memberof VSCChannelLoggerStrategy
|
19 | */
|
20 | constructor(channelName: string, level?: LogLevels);
|
21 | log(level: LogLevels, message: string, contextID?: string): void;
|
22 | }
|
23 | //# sourceMappingURL=VSCChannelLoggerStrategy.d.ts.map |
\ | No newline at end of file |