Difference between revisions of "Debug log info"
From OpenKM Documentation
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | == OpenKM 6.2 == | ||
+ | To provide a convenient log info, please follow these steps: | ||
+ | |||
+ | * Stop Tomcat. | ||
+ | * Remove the content of directory '''$TOMCAT_HOME/logs''' | ||
+ | * Edit the file '''$TOMCAT_HOME/conf/log4j.properties''' | ||
+ | * If want to debug the class '''com.openkm.extractor.PdfTextExtractor''', add this entry at the end of the file: | ||
+ | |||
+ | <source lang="java"> | ||
+ | log4j.logger.com.openkm.extractor.PdfTextExtractor=DEBUG | ||
+ | </source> | ||
+ | |||
+ | * Start Tomcat. | ||
+ | * Try to reproduce the error. | ||
+ | * Send the file located at '''$TOMCAT_HOME/logs/catalina.log''' (zipped, please) | ||
+ | |||
+ | == OpenKM 5.1 == | ||
To provide a convenient log info, please follow these steps: | To provide a convenient log info, please follow these steps: | ||
Line 20: | Line 37: | ||
</category> | </category> | ||
<category name="com.openkm.util.DocConverter"> | <category name="com.openkm.util.DocConverter"> | ||
+ | <priority value="DEBUG" /> | ||
+ | </category> | ||
+ | <category name="com.openkm.util.ExecutionUtils"> | ||
<priority value="DEBUG" /> | <priority value="DEBUG" /> | ||
</category> | </category> |
Latest revision as of 19:01, 21 February 2013
OpenKM 6.2
To provide a convenient log info, please follow these steps:
- Stop Tomcat.
- Remove the content of directory $TOMCAT_HOME/logs
- Edit the file $TOMCAT_HOME/conf/log4j.properties
- If want to debug the class com.openkm.extractor.PdfTextExtractor, add this entry at the end of the file:
log4j.logger.com.openkm.extractor.PdfTextExtractor=DEBUG
- Start Tomcat.
- Try to reproduce the error.
- Send the file located at $TOMCAT_HOME/logs/catalina.log (zipped, please)
OpenKM 5.1
To provide a convenient log info, please follow these steps:
- Stop JBoss.
- Remove the directory $JBOSS_HOME/server/default/log
- Remove the directory $JBOSS_HOME/server/default/tmp
- Remove the directory $JBOSS_HOME/server/default/work
- Edit the file $JBOSS_HOME/server/default/conf/jboss-log4j.xml and locate this comment at the end:
<!-- ======================= -->
<!-- Setup the Root category -->
<!-- ======================= -->
- Before the comment, add this entry:
<category name="com.openkm.api">
<priority value="DEBUG" />
</category>
<category name="com.openkm.util.DocConverter">
<priority value="DEBUG" />
</category>
<category name="com.openkm.util.ExecutionUtils">
<priority value="DEBUG" />
</category>
- Take a look at Debugging OpenKM for more info.
- Start JBoss.
- Try to reproduce the error.
- Send the file located at $JBOSS_HOME/server/default/log/server.log (zipped, please)