Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Log output
[Teneo] Log output [message #75352] Tue, 13 March 2007 22:07 Go to next message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

Martin,

I thought you presentation at EclipseCon was one of the best ones I saw
all week. I was really impressed with what you have done with EMF and
database persistence. I decided to download Teneo and give it a try.

I got Teneo from the EMFT update site and I got Hibernate from
hibernate.org. I think I have your library sample working, except I get
no log output. I remembered you had very verbose output in your
presentation. In fact, the only output I get is:

log4j:WARN No appenders could be found for logger
(org.eclipse.emf.teneo.hibernate.HbHelper).
log4j:WARN Please initialize the log4j system properly

I just looked at your presentation again, and I didn't see any reference
to a log4j initialization. I have added the log4j.jar file to my
project. Any other thoughts?

cheers,
ian
Re: [Teneo] Log output [message #75369 is a reply to message #75352] Tue, 13 March 2007 22:49 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060800050700040606040106
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Ian,
Thanks, always nice to get positive feedback!

You probably need to put a log4j.properties file somewhere. I attached one for you. It is not nicely
formatted or precise in its settings but it works for me. To get the most output all the levels
should be set at debug, to get the least output the best level is error.
It is always a bit trial of error to find the best location for this file. Normally the root of the
src tree is the best location (so just under src). You need to ensure that the build step copies
log4j.properties to the output directory (check the build properties in the plugin definitions).

gr. Martin

Ian Bull wrote:
> Martin,
>
> I thought you presentation at EclipseCon was one of the best ones I saw
> all week. I was really impressed with what you have done with EMF and
> database persistence. I decided to download Teneo and give it a try.
>
> I got Teneo from the EMFT update site and I got Hibernate from
> hibernate.org. I think I have your library sample working, except I get
> no log output. I remembered you had very verbose output in your
> presentation. In fact, the only output I get is:
>
> log4j:WARN No appenders could be found for logger
> (org.eclipse.emf.teneo.hibernate.HbHelper).
> log4j:WARN Please initialize the log4j system properly
>
> I just looked at your presentation again, and I didn't see any reference
> to a log4j initialization. I have added the log4j.jar file to my
> project. Any other thoughts?
>
> cheers,
> ian


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org

--------------060800050700040606040106
Content-Type: text/plain;
name="log4j.properties"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="log4j.properties"

# Set root logger level to error and its only appender to A1.
log4j.rootCategory=error, A1

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

#log4j.logger.org.hibernate=info
log4j.logger.org.hibernate=info
#org.hibernate.pretty

### log HQL query parser activity
log4j.logger.org.hibernate.hql.ast.AST=info

### log just the SQL
log4j.logger.org.hibernate.SQL=debug

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=info
#log4j.logger.org.hibernate.type=info

### log schema export/update ###
log4j.logger.org.hibernate.tool.hbm2ddl=info

### log HQL parse trees
log4j.logger.org.hibernate.hql=info

### log cache activity ###
log4j.logger.org.hibernate.cache=info

### log transaction activity
log4j.logger.org.hibernate.transaction=info

### log JDBC resource acquisition
log4j.logger.org.hibernate.jdbc=info

### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=info

--------------060800050700040606040106--
Re: [Teneo] Log output [message #75658 is a reply to message #75369] Wed, 14 March 2007 17:00 Go to previous message
Eclipse UserFriend
Originally posted by: irbull.cs.uvic.ca

Thanks Martin,

Works like a charm!

cheers,
ian

Martin Taal wrote:
> Hi Ian,
> Thanks, always nice to get positive feedback!
>
> You probably need to put a log4j.properties file somewhere. I attached
> one for you. It is not nicely formatted or precise in its settings but
> it works for me. To get the most output all the levels should be set at
> debug, to get the least output the best level is error.
> It is always a bit trial of error to find the best location for this
> file. Normally the root of the src tree is the best location (so just
> under src). You need to ensure that the build step copies
> log4j.properties to the output directory (check the build properties in
> the plugin definitions).
>
> gr. Martin
>
> Ian Bull wrote:
>> Martin,
>>
>> I thought you presentation at EclipseCon was one of the best ones I
>> saw all week. I was really impressed with what you have done with EMF
>> and database persistence. I decided to download Teneo and give it a try.
>>
>> I got Teneo from the EMFT update site and I got Hibernate from
>> hibernate.org. I think I have your library sample working, except I
>> get no log output. I remembered you had very verbose output in your
>> presentation. In fact, the only output I get is:
>>
>> log4j:WARN No appenders could be found for logger
>> (org.eclipse.emf.teneo.hibernate.HbHelper).
>> log4j:WARN Please initialize the log4j system properly
>>
>> I just looked at your presentation again, and I didn't see any
>> reference to a log4j initialization. I have added the log4j.jar file
>> to my project. Any other thoughts?
>>
>> cheers,
>> ian
>
>
>
> ------------------------------------------------------------ ------------
>
> # Set root logger level to error and its only appender to A1.
> log4j.rootCategory=error, A1
>
> # A1 is set to be a ConsoleAppender.
> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>
> # A1 uses PatternLayout.
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
>
> #log4j.logger.org.hibernate=info
> log4j.logger.org.hibernate=info
> #org.hibernate.pretty
>
> ### log HQL query parser activity
> log4j.logger.org.hibernate.hql.ast.AST=info
>
> ### log just the SQL
> log4j.logger.org.hibernate.SQL=debug
>
> ### log JDBC bind parameters ###
> log4j.logger.org.hibernate.type=info
> #log4j.logger.org.hibernate.type=info
>
> ### log schema export/update ###
> log4j.logger.org.hibernate.tool.hbm2ddl=info
>
> ### log HQL parse trees
> log4j.logger.org.hibernate.hql=info
>
> ### log cache activity ###
> log4j.logger.org.hibernate.cache=info
>
> ### log transaction activity
> log4j.logger.org.hibernate.transaction=info
>
> ### log JDBC resource acquisition
> log4j.logger.org.hibernate.jdbc=info
>
> ### enable the following line if you want to track down connection ###
> ### leakages when using DriverManagerConnectionProvider ###
> log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=info
Re: [Teneo] Log output [message #603590 is a reply to message #75352] Tue, 13 March 2007 22:49 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060800050700040606040106
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Ian,
Thanks, always nice to get positive feedback!

You probably need to put a log4j.properties file somewhere. I attached one for you. It is not nicely
formatted or precise in its settings but it works for me. To get the most output all the levels
should be set at debug, to get the least output the best level is error.
It is always a bit trial of error to find the best location for this file. Normally the root of the
src tree is the best location (so just under src). You need to ensure that the build step copies
log4j.properties to the output directory (check the build properties in the plugin definitions).

gr. Martin

Ian Bull wrote:
> Martin,
>
> I thought you presentation at EclipseCon was one of the best ones I saw
> all week. I was really impressed with what you have done with EMF and
> database persistence. I decided to download Teneo and give it a try.
>
> I got Teneo from the EMFT update site and I got Hibernate from
> hibernate.org. I think I have your library sample working, except I get
> no log output. I remembered you had very verbose output in your
> presentation. In fact, the only output I get is:
>
> log4j:WARN No appenders could be found for logger
> (org.eclipse.emf.teneo.hibernate.HbHelper).
> log4j:WARN Please initialize the log4j system properly
>
> I just looked at your presentation again, and I didn't see any reference
> to a log4j initialization. I have added the log4j.jar file to my
> project. Any other thoughts?
>
> cheers,
> ian


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org

--------------060800050700040606040106
Content-Type: text/plain;
name="log4j.properties"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="log4j.properties"

# Set root logger level to error and its only appender to A1.
log4j.rootCategory=error, A1

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

#log4j.logger.org.hibernate=info
log4j.logger.org.hibernate=info
#org.hibernate.pretty

### log HQL query parser activity
log4j.logger.org.hibernate.hql.ast.AST=info

### log just the SQL
log4j.logger.org.hibernate.SQL=debug

### log JDBC bind parameters ###
log4j.logger.org.hibernate.type=info
#log4j.logger.org.hibernate.type=info

### log schema export/update ###
log4j.logger.org.hibernate.tool.hbm2ddl=info

### log HQL parse trees
log4j.logger.org.hibernate.hql=info

### log cache activity ###
log4j.logger.org.hibernate.cache=info

### log transaction activity
log4j.logger.org.hibernate.transaction=info

### log JDBC resource acquisition
log4j.logger.org.hibernate.jdbc=info

### enable the following line if you want to track down connection ###
### leakages when using DriverManagerConnectionProvider ###
log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=info

--------------060800050700040606040106--
Re: [Teneo] Log output [message #603659 is a reply to message #75369] Wed, 14 March 2007 17:00 Go to previous message
Ian Bull is currently offline Ian BullFriend
Messages: 145
Registered: July 2009
Senior Member
Thanks Martin,

Works like a charm!

cheers,
ian

Martin Taal wrote:
> Hi Ian,
> Thanks, always nice to get positive feedback!
>
> You probably need to put a log4j.properties file somewhere. I attached
> one for you. It is not nicely formatted or precise in its settings but
> it works for me. To get the most output all the levels should be set at
> debug, to get the least output the best level is error.
> It is always a bit trial of error to find the best location for this
> file. Normally the root of the src tree is the best location (so just
> under src). You need to ensure that the build step copies
> log4j.properties to the output directory (check the build properties in
> the plugin definitions).
>
> gr. Martin
>
> Ian Bull wrote:
>> Martin,
>>
>> I thought you presentation at EclipseCon was one of the best ones I
>> saw all week. I was really impressed with what you have done with EMF
>> and database persistence. I decided to download Teneo and give it a try.
>>
>> I got Teneo from the EMFT update site and I got Hibernate from
>> hibernate.org. I think I have your library sample working, except I
>> get no log output. I remembered you had very verbose output in your
>> presentation. In fact, the only output I get is:
>>
>> log4j:WARN No appenders could be found for logger
>> (org.eclipse.emf.teneo.hibernate.HbHelper).
>> log4j:WARN Please initialize the log4j system properly
>>
>> I just looked at your presentation again, and I didn't see any
>> reference to a log4j initialization. I have added the log4j.jar file
>> to my project. Any other thoughts?
>>
>> cheers,
>> ian
>
>
>
> ------------------------------------------------------------ ------------
>
> # Set root logger level to error and its only appender to A1.
> log4j.rootCategory=error, A1
>
> # A1 is set to be a ConsoleAppender.
> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>
> # A1 uses PatternLayout.
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
>
> #log4j.logger.org.hibernate=info
> log4j.logger.org.hibernate=info
> #org.hibernate.pretty
>
> ### log HQL query parser activity
> log4j.logger.org.hibernate.hql.ast.AST=info
>
> ### log just the SQL
> log4j.logger.org.hibernate.SQL=debug
>
> ### log JDBC bind parameters ###
> log4j.logger.org.hibernate.type=info
> #log4j.logger.org.hibernate.type=info
>
> ### log schema export/update ###
> log4j.logger.org.hibernate.tool.hbm2ddl=info
>
> ### log HQL parse trees
> log4j.logger.org.hibernate.hql=info
>
> ### log cache activity ###
> log4j.logger.org.hibernate.cache=info
>
> ### log transaction activity
> log4j.logger.org.hibernate.transaction=info
>
> ### log JDBC resource acquisition
> log4j.logger.org.hibernate.jdbc=info
>
> ### enable the following line if you want to track down connection ###
> ### leakages when using DriverManagerConnectionProvider ###
> log4j.logger.org.hibernate.connection.DriverManagerConnectio nProvider=info
Previous Topic:Query by Class question and potential problem
Next Topic:[Teneo] Storing EStructuralFeatures from their containing generated packages
Goto Forum:
  


Current Time: Sat Oct 31 05:27:37 GMT 2020

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

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

Back to the top