how to turn debug logs from plugins packages ?
# ask-ai
c
how to turn debug logs from plugins packages ?
t
Thanks for reaching out, Filippo. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd be happy to help you enable debug logs for plugin packages in LiveKit! Here’s how you can do it: • For Python-based plugins: You can use Python's
logging
module to set the logging level to
DEBUG
. Here’s a simple example:
Copy code
import logging

# Enable debug logs for a specific plugin
logging.getLogger("livekit.plugins.aws").setLevel(logging.DEBUG)
Just replace
"livekit.plugins.aws"
with the plugin name you’re working with, like
"livekit.plugins.browser"
or
"livekit.plugins.soniox"
. • For JavaScript SDKs: You can call
setLogLevel('debug')
early on in your app’s lifecycle to turn on debug logging. • For more advanced setups: Consider using
setLogExtension()
to add extra context and even forward logs to tools like Datadog or Sentry. If you have any questions or want help with a specific plugin, just let me know—I’m here to assist! Sources: .github/ISSUE_TEMPLATE/bug_report.yaml | Agent Testing & CI/CD | livekit/livekit_composite | DeepWiki | Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik... | Log collection | LiveKit Docs | livekit-plugins/livekit-plugins-resemble/livekit/plugins/resemble/log.py