Use LogLevel as type instead of number

This commit is contained in:
RMidhunSuresh 2021-11-10 14:49:59 +05:30
parent e3c85c585e
commit ab126729e0

View file

@ -68,7 +68,7 @@ export abstract class BaseLogger {
return this._run(item, callback, logLevel!, filterCreator, true); return this._run(item, callback, logLevel!, filterCreator, true);
} }
_run(item: LogItem, callback: LogCallback, logLevel: number, filterCreator: FilterCreator, shouldThrow: boolean) { _run(item: LogItem, callback: LogCallback, logLevel: LogLevel, filterCreator: FilterCreator, shouldThrow: boolean) {
this._openItems.add(item); this._openItems.add(item);
const finishItem = () => { const finishItem = () => {