bsky-app/src/logger/logDump.ts

13 lines
254 B
TypeScript
Raw Normal View History

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