Make BaseLogger abstract
This commit is contained in:
parent
030c46264b
commit
377cc4ca1f
1 changed files with 3 additions and 7 deletions
|
@ -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() {
|
||||||
|
|
Reference in a new issue