Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » How to exclude entity transactions from logging(How to exclude entity transactions from logging)
How to exclude entity transactions from logging [message #1758045] Wed, 22 March 2017 20:11 Go to next message
Eclipse UserFriend
I am asking if there is a way using SessionCustomizer or other, to exclude specific entity classes from logging ANY CRUD operations when normal sql logging is enabled. It would be "nice" to still see exceptions if/when they occur, but at a minimum to exclude INSERT and UPDATE statements, along with their bind data.
Re: How to exclude entity transactions from logging [message #1758324 is a reply to message #1758045] Mon, 27 March 2017 12:48 Go to previous messageGo to next message
Eclipse UserFriend
Nothing goes to that level of customization that I'm aware of, but you could write your own logging implementation to allow you to filter as you want. See https://wiki.eclipse.org/EclipseLink/Examples/JPA/CustomLogger
Re: How to exclude entity transactions from logging [message #1758332 is a reply to message #1758324] Mon, 27 March 2017 13:38 Go to previous message
Eclipse UserFriend
Completely agree. But what I "need" is some "better" examples of writing such a logger. I am "pretty" well versed in working with class descriptors and such, but I am just not "seeing" how to decide whether to log a statement or not. What I am expecting, is that I would like to write something where I can "detect" what is attempting to be logged. If I want that class logged, just pass it through, else block it by NOT passing it through. If I could get the "right" concept started, I could finish it to completion.
Previous Topic:ConcurrencyManager.releaseDeferredLock
Next Topic:[SOLVED] - Impossible to store Large CLOBS with Oracle11Platform and Oracle 11g
Goto Forum:
  


Current Time: Sun Jul 13 18:01:33 EDT 2025

Powered by FUDForum. Page generated in 0.04401 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top