Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Send structured log messages.
import { useSendLog } from 'sunpeak';
function useSendLog(): (params: SendLogParams) => void
'debug' | 'info' | 'warning' | 'error' | 'critical'
import { useSendLog } from 'sunpeak'; function MyResource() { const sendLog = useSendLog(); const handleAction = () => { sendLog({ level: 'info', data: { action: 'button_clicked' }, logger: 'MyResource' }); }; return <button onClick={handleAction}>Click Me</button>; }