import { createLogger, installGlobalHandlers } from '@persona-community-5/logger';

export const logger = createLogger({
  level: import.meta.env.DEV ? 'debug' : 'info',
  service: 'creator-ui',
  // Set endpoint to send logs to your backend:
  // endpoint: '/api/logs',
});

// Install global error handlers
installGlobalHandlers(logger);
