bsky-app/src/logger/logDump.ts

13 lines
259 B
TypeScript
Raw Normal View History

import type {ConsoleTransportEntry} from '#/logger'
2023-11-03 22:34:14 +01:00
let entries: ConsoleTransportEntry[] = []
export function add(entry: ConsoleTransportEntry) {
entries.unshift(entry)
entries = entries.slice(0, 50)
}
export function getEntries() {
return entries
}