Troubleshooting
To see the exact prompt that is sent for any custom AI action (in the Chat
view), you can set the oxygen.ai.positron.development.mode
system property with the value of
true in the parent Oxygen application.
If the add-on fails to connect with the custom settings, it might be useful to enable debug logging in the application to see what requests and responses are made to/from the AI server.
You can enable debug logging in the application by adding a
logback.xml file in the application's installation folder. A minimal
logback.xml configuration XML file content to enable logging only for the
AI Positron add-on's connections would look like
this:<configuration>
<appender name="R2" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${user.home}/Desktop/oxygenLog/oxygen.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>${user.home}/Desktop/oxygenLog/oxygen%i.log.gz</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>20</maxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<maxFileSize>12MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%r %marker %p [ %t ] %c - %m%n</pattern>
</encoder>
</appender>
<logger name="com.oxygenxml.positron.connector" level="debug"/>
<logger name="com.oxygenxml.positron.core" level="debug"/>
<root level="error">
<appender-ref ref="R2"/>
</root>
</configuration>Important:
The logging
information will be copied in the Desktop/oxygenLog folder once the
application is started. To avoid performance problems, the
logback.xml file
must be deleted once the logging has been obtained.