Updated Logger to have a single source of truth

This commit is contained in:
CnF-Gris 2025-07-02 15:03:18 +00:00
parent d7282c0c89
commit 0f49a24dec
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,5 @@
import { DEBUG } from "./constants"
import { LOGGER_DELIMITER } from "../../shared/constants"
class Logger {
private static initialized = false
@ -28,13 +29,13 @@ class Logger {
const debugMessage =
`
############################################
${LOGGER_DELIMITER}
${title} DEBUG ${currentTime}
${message}
############################################
${LOGGER_DELIMITER}
`
console.info(

View File

@ -9,4 +9,7 @@ export const PROTECTED_APP_BASE = `${APP_BASE}/program`
export const APP_HOME = `${PROTECTED_APP_BASE}/home`
// Cookies
export const SESSION_COOKIE_NAME = "session"
export const SESSION_COOKIE_NAME = "session"
// Logger
export const LOGGER_DELIMITER = "####################################################################"