Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Disable logging information of Teneo/Hibernate
Disable logging information of Teneo/Hibernate [message #1403219] Tue, 22 July 2014 12:03 Go to next message
Thomas Zwickl is currently offline Thomas ZwicklFriend
Messages: 37
Registered: May 2014
Member
Hello,

I'm really having some hard time to figure out how to deactivate the logging information that teneo/hibernate is producing. We are using a logging console to print information for the user, but at the initial start-up of the application, when the database is created by hibernate, teneo/hibernate prints so many logging information to the console that you completely lose the orientation of what is important and what not. I already tried out almost everything I could find in the internet, but nothing worked for me so far ... I'm having a RCP application which consists of several plug-ins and one EMF model which represents my entire data-structure which I'm saving in a database with teneo/hibernate.

My Hibernate version is 3.6.0 and my Teneo version is 1.2.0

I already tried the following things out:

Maybe someone has encountered the same problems and found a way to solve them Wink I really would appreciate any help or pointers you can provide.

Best regards,
Tom
Re: Disable logging information of Teneo/Hibernate [message #1403321 is a reply to message #1403219] Tue, 22 July 2014 23:26 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Thomas,
Have you tried the log4j debug option to see which log4j properties file is being used?
to see this add this to the jvm args:
-Dlog4j.debug=true

gr. Martin

On 22-07-14 14:03, Thomas Zwickl wrote:
> Hello,
>
> I'm really having some hard time to figure out how to deactivate the logging information that teneo/hibernate is
> producing. We are using a logging console to print information for the user, but at the initial start-up of the
> application, when the database is created by hibernate, teneo/hibernate prints so many logging information to the
> console that you completely lose the orientation of what is important and what not. I already tried out almost
> everything I could find in the internet, but nothing worked for me so far ... I'm having a RCP application which
> consists of several plug-ins and one EMF model which represents my entire data-structure which I'm saving in a database
> with teneo/hibernate.
>
> My Hibernate version is 3.6.0 and my Teneo version is 1.2.0
>
> I already tried the following things out:
>
> I added a log4j.properties to my EMF Model Project as described on this site:
> https://wiki.eclipse.org/Teneo/Hibernate/FAQ#Troubleshooting_the_Mapping_and_Runtime_layer.2FHibernate
> Furtheremore I already tried out everything that works with Hibernate. I added slf4j-api.jar to my plug-in and
> log4j.jar. Then I created the same log4j.properties file but this didn't work as well.
>
> Maybe someone has encountered the same problems and found a way to solve them ;) I really would appreciate any help or
> pointers you can provide.
>
> Best regards,
> Tom


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: Disable logging information of Teneo/Hibernate [message #1403820 is a reply to message #1403321] Mon, 28 July 2014 07:11 Go to previous message
Thomas Zwickl is currently offline Thomas ZwicklFriend
Messages: 37
Registered: May 2014
Member
Hi Martin,

yes I tried it out today and got the following log:

log4j: Trying to find [log4j.xml] using context classloader org.eclipse.core.runtime.internal.adaptor.ContextFinder@755fd06f.
log4j: Trying to find [log4j.xml] using org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@740a1e39[org.fortiss.performance.ba.pure.servicemanager.persistence:1.0.5(id=498)] class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader org.eclipse.core.runtime.internal.adaptor.ContextFinder@755fd06f.
log4j: Using URL [bundleresource://498.fwk2019053795:1/log4j.properties] for automatic log4j configuration.
log4j: Reading configuration from URL bundleresource://498.fwk2019053795:1/log4j.properties
log4j: Parsing for [root] with value=[error, A1].
log4j: Level token is [error].
log4j: Category root set to ERROR
log4j: Parsing appender named "A1".
log4j: Parsing layout options for "A1".
log4j: Setting property [conversionPattern] to [%-4r [%t] %-5p %c %x - %m%n].
log4j: End of parsing for "A1".
log4j: Parsed "A1" options.
log4j: Parsing for [org.hibernate.jdbc] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate.jdbc set to ERROR
log4j: Handling log4j.additivity.org.hibernate.jdbc=[null]
log4j: Parsing for [org.hibernate.type] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate.type set to ERROR
log4j: Handling log4j.additivity.org.hibernate.type=[null]
log4j: Parsing for [org.hibernate.transaction] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate.transaction set to ERROR
log4j: Handling log4j.additivity.org.hibernate.transaction=[null]
log4j: Parsing for [org.hibernate.connection.DriverManagerConnectionProvider] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate.connection.DriverManagerConnectionProvider set to ERROR
log4j: Handling log4j.additivity.org.hibernate.connection.DriverManagerConnectionProvider=[null]
log4j: Parsing for [org.hibernate.tool.hbm2ddl] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate.tool.hbm2ddl set to ERROR
log4j: Handling log4j.additivity.org.hibernate.tool.hbm2ddl=[null]
log4j: Parsing for [org.hibernate] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate set to ERROR
log4j: Handling log4j.additivity.org.hibernate=[null]
log4j: Parsing for [org.eclipse.emf.teneo] with value=[error].
log4j: Level token is [error].
log4j: Category org.eclipse.emf.teneo set to ERROR
log4j: Handling log4j.additivity.org.eclipse.emf.teneo=[null]
log4j: Parsing for [org.hibernate.SQL] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate.SQL set to ERROR
log4j: Handling log4j.additivity.org.hibernate.SQL=[null]
log4j: Parsing for [org.hibernate.hql] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate.hql set to ERROR
log4j: Handling log4j.additivity.org.hibernate.hql=[null]
log4j: Parsing for [org.hibernate.hql.ast.AST] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate.hql.ast.AST set to ERROR
log4j: Handling log4j.additivity.org.hibernate.hql.ast.AST=[null]
log4j: Parsing for [org.hibernate.cache] with value=[error].
log4j: Level token is [error].
log4j: Category org.hibernate.cache set to ERROR
log4j: Handling log4j.additivity.org.hibernate.cache=[null]
log4j: Finished configuring.


For me it seems as it finds the properties file for log4j, but it still prints all the hibernate massages to the console ...
Any advises what else I could try out?

Best Regards,
Tom
Previous Topic:[Texo] Use resource as GMF input
Next Topic:[EMFStore] Blocker : Commit of EContainment is throwing NPE
Goto Forum:
  


Current Time: Fri Mar 05 20:39:29 GMT 2021

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

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

Back to the top