Troubleshooting
Enable debug logging to inspect the requests that AI Positron for Web Author sends to an AI service.
Enable AI Positron Debug Logging
If AI Positron cannot connect to a configured AI service, or if you need to verify the structure of the requests sent to the service, enable debug logging for the AI Positron plugin on the Web Author server.
- Open the Administration Page and locate the Web Author logging configuration. For details, see Locating and Configuring Logs.
- Add the following line to the logging configuration:
log4j.category.com.oxygenxml.positron=debug - Restart the Web Author server.
- Reproduce the problem, or send the prompt whose request you want to inspect.
- Open the Web Author server log and search for entries from the
com.oxygenxml.positronpackage.
Warning:
Debug logging can generate a large amount of information and may affect performance. After you finish troubleshooting, remove the added logging configuration and restart the Web Author server.
Inspect AI Requests
The debug log includes the target URL, request structure, model parameters, headers, and any tool definitions sent to the LLM. Sensitive values and content are filtered. A request may look similar to this:
--> Sending request to: https://api.anthropic.com/v1/messages;
Request body: {"model":"claude-3-5-sonnet","system":"**FILTERED: SYSTEM PROMPT**",
"messages":[{"role":"user","content":"**FILTERED: TEXT CONTENT**"}],
"tools":[{"function":{"name":"get_file","description":"**FILTERED: DESCRIPTION**"}}],
"temperature":0.7,"stream":true};
Headers: {Authorization=Bearer sk-ant**[filtered]**, Content-Type=application/json}
If you use the Oxygen AI Positron Custom Connector Add-on, its request logging also records the content sent through that connector when logging is enabled.
Note:
System prompts, message content, image data, tool
descriptions, and credentials are filtered in the AI Positron debug output. Review the logs
before sharing them because other server components or custom connectors may use different
filtering behavior.