Use private fields
This commit is contained in:
@ -194,11 +194,11 @@ export class LoggingBase {
|
||||
}
|
||||
}
|
||||
|
||||
private $closed = false;
|
||||
#closed = false;
|
||||
|
||||
public close() {
|
||||
if (this.$closed) return;
|
||||
this.$closed = true;
|
||||
if (this.#closed) return;
|
||||
this.#closed = true;
|
||||
|
||||
this.adapterSet.adapters.forEach((adapter) => {
|
||||
let cached = adapterCache.get(adapter);
|
||||
@ -319,7 +319,7 @@ export class LoggingBase {
|
||||
message: any[],
|
||||
caller?: { file: string; line: number; column?: number }
|
||||
) {
|
||||
if (this.$closed) return;
|
||||
if (this.#closed) return;
|
||||
|
||||
let date = new Date().toISOString().replace(/T/, " ").replace(/\..+/, "");
|
||||
|
||||
|
Reference in New Issue
Block a user