foundary-test-1770784989/apps/studio-ui/src/lib/logger.ts
jordan 484b882e7f
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add components: app-react/studio-ui, service/studio-api
2026-02-11 04:46:10 +00:00

12 lines
344 B
TypeScript

import { createLogger, installGlobalHandlers } from '@foundary-test-1770784989/logger';
export const logger = createLogger({
level: import.meta.env.DEV ? 'debug' : 'info',
service: 'studio-ui',
// Set endpoint to send logs to your backend:
// endpoint: '/api/logs',
});
// Install global error handlers
installGlobalHandlers(logger);