mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 20:38:26 -04:00
Adding the actual logger I missed int he last change.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
8
frontend/src/utils/logger.ts
Normal file
8
frontend/src/utils/logger.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// src/utils/logger.ts
|
||||
// Centralized logger using loglevel, with level set from REACT_APP_LOG_LEVEL
|
||||
import log, { LogLevelDesc } from "loglevel";
|
||||
|
||||
const level = (process.env.REACT_APP_LOG_LEVEL || "info") as LogLevelDesc;
|
||||
log.setLevel(level);
|
||||
|
||||
export const logger = log;
|
||||
Reference in New Issue
Block a user