In development, logs are output to the console for easy debugging. In production, logs are sent to BetterStack Logs where they can be searched, filtered, and analyzed.
To use this logging setup, simply import and use the log object. It shares the same interface as the console object, so you can replace console with log in your codebase.
page.tsx
Copy
import { log } from '@repo/observability/log';log.info('Hello, world!');