BX21
BX21

Reputation: 461

openjpa logging in websphere liberty osgi

I have an OSGi application that has the following:

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 :

Upvotes: 0

Views: 190

Answers (1)

Heath Thomann
Heath Thomann

Reputation: 136

I answered a very similar question on this topic a month ago [1]. The question was for traditional WebSphere 8.5.5.x, however, the info is pretty much the same for Liberty as well. Please read that link and if you still have questions please ask specifics. Let me add a few specifics to your comments: As far as any OpenJPA trace settings being ignored in server.xml, I'd expect them to be ignored by WAS tracing when a user is not using container managed entity managers (I explain why in [1]). In this case, you'd need to put the trace properties in your persistence.xml file, or you can specify them as a JVM property. Finally, with regard to log wrapping, you can not expect the log file to wrap when using OpenJPA tracing. If you were using container managed entity managers where the container is involved, and in turn WAS tracing, you would get wrapping. However, this wrapping is a WAS feature, not OpenJPA.

[1] WebSphere (8.5.5) does not logging OpenJPA

Upvotes: 1

Related Questions