Change console to Console and unlock AI-powered insights, real-time monitoring, and intelligent troubleshooting.
+ import { Console } from '@consl/js';
async function fetchUserData(userId: string) {
try {
const response = await fetch(`/api/users/${userId}`)
const data = await response.json()
return data
} catch (error) {
- console.error('Failed to fetch user:', error)
+ Console.error('Failed to fetch user:', error)
throw error
}
}
Same console methods you already know and love. Just change console to Console and you're ready to go.
Get intelligent analysis of your logs with automatic error categorization, all through the familiar console API.