This project has retired. For details please refer to its Attic page.
Apache Chemistry - OpenCMIS Logging
     
   
 

OpenCMIS Logging

OpenCMIS uses the log4j to perform logging. logfj is configured using the usual configuration procedure (see log4j documentation). Usually you will have to place a log4j.properties file in the class path.

Example log4j.properties file

	log4j.rootCategory=WARN, R, O

	# Stdout
	log4j.appender.O=org.apache.log4j.ConsoleAppender

	# File
	log4j.appender.R=org.apache.log4j.RollingFileAppender
	log4j.appender.R.File=log4j.log

	# Control the maximum log file size
	log4j.appender.R.MaxFileSize=100KB

	# Archive log files (one backup file here)
	log4j.appender.R.MaxBackupIndex=1
	log4j.appender.R.layout=org.apache.log4j.PatternLayout
	log4j.appender.O.layout=org.apache.log4j.PatternLayout
	log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %-5p \[%t\] %c: %m%n
	log4j.appender.O.layout.ConversionPattern=%d{ISO8601} %-5p \[%t\] %c: %m%n

	# log4j.logger.org.apache.chemistry.opencmis.client.provider.spi=INFO, O 

	# enable this to set a certain package to debug level
	# log4j.category.org.apache.chemistry.opencmis=DEBUG

	# Logging the URLs for AtomPub in the client
	# Sometimes it is useful to trace the URLs that are generated by the client 
	# implementation in the logs. Here is an example configuration to accomplish this:

	log4j.category.org.apache.chemistry.opencmis.client.bindings.spi.atompub.HttpUtils=DEBUG