Add new logger
This commit is contained in:
parent
445f976881
commit
fd93bf2146
13 changed files with 888 additions and 18 deletions
12
src/logger/logDump.ts
Normal file
12
src/logger/logDump.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue