40
});
41
}
43
>
override registerLogger(logger: ILoggerResource): void {
44
super.registerLogger(logger);
45
this.channel.call('registerLogger', [logger, this.windowId]);
46
}
48
>
override deregisterLogger(idOrResource: URI | string): void {
49
const resource = this.toResource(idOrResource);
50
super.deregisterLogger(resource);
51
this.channel.call('deregisterLogger', [resource, this.windowId]);
52
}
54
>
override setLogLevel(logLevel: LogLevel): void;
55
>
override setLogLevel(resource: URI, logLevel: LogLevel): void;
56
>
override setLogLevel(arg1: any, arg2?: any): void {
57
super.setLogLevel(arg1, arg2);
58
this.channel.call('setLogLevel', [arg1, arg2]);
59
}
61
>
override setVisibility(resourceOrId: URI | string, visibility: boolean): void {
62
super.setVisibility(resourceOrId, visibility);
63
this.channel.call('setVisibility', [this.toResource(resourceOrId), visibility]);
64
}
66
>
protected doCreateLogger(file: URI, logLevel: LogLevel, options?: ILoggerOptions): ILogger {
67
return new Logger(this.channel, file, logLevel, options, this.windowId);
68
}
70
>
public static setLogLevel(channel: IChannel, level: LogLevel): Promise<void>;
71
>
public static setLogLevel(channel: IChannel, resource: URI, level: LogLevel): Promise<void>;
72
>
public static setLogLevel(channel: IChannel, arg1: any, arg2?: any): Promise<void> {
73
return channel.call('setLogLevel', [arg1, arg2]);
74
}
76
>
}
77
>
78
>
class Logger extends AbstractMessageLogger {
79
>
80
>
private isLoggerCreated: boolean = false;
81
>
private buffer: [LogLevel, string][] = [];
82
>
83
>
constructor(
84
private readonly channel: IChannel,
85
private readonly file: URI,