Logs Events
Log events are distributed by Modern.js as events of type log.
Built-in Events
Based on server-side runtime logic, Modern.js provides the following log events:
Built-in Monitor
In Modern.js, log events are handled by LoggerMonitor, which outputs logs to the console.
Info
The built-in LoggerMonitor depends on the rslog library.
For example, intentionally throwing an error in the project:
routes/page.tsx
If running normally, you can see the following output in the console: