I have an OSGi application that has the following:
- It runs on Websphere Liberty
- It uses the openjpa from websphere liberty via osgi for database access - it does this by importing the necessary javax.persistence packages.
- It contains a separate bundle for logging which exports the org.slf4j packages
At present the openjpa provided by websphere liberty logs everything to the console output / messages.log file.
I would like to configure this behaviour and specify a different file / make it use the logging bundle.
Things I have tried :
- Provide a element in the server.xml - this is ignored
- Specify "File=filename" option in the openjpa.Log property - this results in a file that does not rollover, which means its size grows without limit
- Try to create my own Logging implementation in an application bundle and provide that - this results in class not found errors as the openjpa bundle inside liberty cannot find my logging class.