diff options
Diffstat (limited to 'client-web/source/logger.ts')
-rw-r--r-- | client-web/source/logger.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client-web/source/logger.ts b/client-web/source/logger.ts index c44ea6b..8f1b471 100644 --- a/client-web/source/logger.ts +++ b/client-web/source/logger.ts @@ -1,6 +1,8 @@ /// <reference lib="dom" /> -import { LOGGER_CONTAINER } from "./index.ts"; +import { ediv } from "./helper.ts"; + +export const LOGGER_CONTAINER = ediv({ class: "logger-container" }) const log_scope_color = { "*": "#ff4a7c", @@ -15,7 +17,6 @@ const log_scope_color = { export type LogScope = keyof typeof log_scope_color export interface LogDesc { scope: LogScope, error?: boolean, warn?: boolean } - export function log(k: LogScope | LogDesc, message: string, ...data: unknown[]) { for (let i = 0; i < data.length; i++) { const e = data[i]; |