Make BaseLogger abstract

This commit is contained in:
RMidhunSuresh 2021-11-09 13:52:41 +05:30
parent 030c46264b
commit 377cc4ca1f

View file

@ -19,7 +19,7 @@ import {LogItem} from "./LogItem.js";
import {LogLevel, LogFilter} from "./LogFilter.js"; import {LogLevel, LogFilter} from "./LogFilter.js";
import {Platform} from "../platform/web/Platform.js"; import {Platform} from "../platform/web/Platform.js";
export class BaseLogger { export abstract class BaseLogger {
protected _openItems: Set<LogItem>; protected _openItems: Set<LogItem>;
protected _platform: Platform; protected _platform: Platform;
@ -131,13 +131,9 @@ export class BaseLogger {
this._openItems.clear(); this._openItems.clear();
} }
_persistItem() { abstract _persistItem(item: LogItem, filter?: LogFilter, forced?: boolean): void;
throw new Error("not implemented");
}
async export() { abstract export(): void;
throw new Error("not implemented");
}
// expose log level without needing // expose log level without needing
get level() { get level() {