import { AbstractLogger, LeveledLogEntry } from '../../src/index' /** * A test logger instance with a callback for added events */ export class TestLogger extends AbstractLogger { constructor(private readonly onAddEntry: (entry: LeveledLogEntry) => Promise) { super() } public async addEntry(entry: LeveledLogEntry): Promise { await this.onAddEntry(entry) } }