how to hide livekit console logs in my next app i ...
# sdk-web
n
how to hide livekit console logs in my next app i tried to add setLogLevel('silent'); in RoomContext.tsx i did not worked
h
Have you tried running
setLogLevel('silent');
at root level? On our project (react app, no Next), we call setLogLevel outside any component function, so it runs as soon as the script bundle is loaded. In your scenario, I think you need to add it in a file with 'use client', to disable console outputs on the browser. If you are seeing logs on the server, and want to control those, try adding it to a file that runs on the server.
✅ 1
❤️ 1