add a simple log viewer to the front end

This commit is contained in:
Jonas Winkler
2020-11-02 01:26:21 +01:00
parent 2b0b3a70a7
commit 323e0fa348
9 changed files with 124 additions and 3 deletions

View File

@@ -1,2 +1,27 @@
export const DEBUG = 10
export const INFO = 20
export const WARNING = 30
export const ERROR = 40
export const CRITICAL = 50
export const LOG_LEVELS = [
{id: DEBUG, name: "DEBUG"},
{id: INFO, name: "INFO"},
{id: WARNING, name: "WARNING"},
{id: ERROR, name: "ERROR"},
{id: CRITICAL, name: "CRITICAL"}
]
export interface PaperlessLog {
id?: number
group?: string
message?: string
created?: Date
level?: number
}