Skip to content

Commit

Permalink
feat(logging): Attach logger to window
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninfa-Jeon committed Feb 7, 2025
1 parent 7b769dd commit ad8d390
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utils/logger.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import log from "loglevel";

declare global {
interface Window {
logger: log.Logger;
}
}

window.logger = log.getLogger("JujuDashboard");

export const logger = log.getLogger("JujuDashboard");

0 comments on commit ad8d390

Please sign in to comment.