website refactor
This commit is contained in:
11
apps/website/lib/infrastructure/logging/logger.ts
Normal file
11
apps/website/lib/infrastructure/logging/logger.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ConsoleLogger } from './ConsoleLogger';
|
||||
|
||||
/**
|
||||
* Shared logger instance.
|
||||
*
|
||||
* Rationale:
|
||||
* - avoids `new ConsoleLogger()` in React Server Components (guarded by ESLint rules)
|
||||
* - provides a single, consistent logging entrypoint for non-infrastructure code
|
||||
*/
|
||||
export const logger = new ConsoleLogger();
|
||||
|
||||
Reference in New Issue
Block a user