-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Log custom Reverse engineering class
PostPosted: Fri Jan 26, 2007 1:13 pm 
Newbie

Joined: Wed Nov 08, 2006 8:50 am
Posts: 13
Ok I am reverse engineeering some pojos and have some doubts.

Is it possible to log the activity of a custom reverse engineering class? Where it goes to? id doesnt go to hibernate-tools.log in the .metadata/plugins... directory? I declared a log inside it and used log.info (and adjusted the properties of the hibernat.log4j.properties inside eclipse plugins) but got no output on the log file.

Thanks in advance


Top
 Profile  
 
 Post subject: Re: Log custom Reverse engineering class
PostPosted: Sat Jan 27, 2007 4:59 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Did you edit your post and removed the question about renaming of classes ? just got confused by the notification coming out twice with different content ;)

marcelotmelo wrote:
Ok I am reverse engineeering some pojos and have some doubts.

Is it possible to log the activity of a custom reverse engineering class? Where it goes to? id doesnt go to hibernate-tools.log in the .metadata/plugins... directory? I declared a log inside it and used log.info (and adjusted the properties of the hibernat.log4j.properties inside eclipse plugins) but got no output on the log file.

Thanks in advance


did you restart eclipse ? It should just work.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 27, 2007 5:01 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm...maybe we have a regression bug.

Do you see any output if you show the eclipse console (the view that shows outputs from java apps, cvs, svn, etc.) ? Here there should be a console view per used hibernate console configuration...maybe the logging only goes there for now.

that would be a bug...please report if that is the case.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 29, 2007 9:58 am 
Newbie

Joined: Wed Nov 08, 2006 8:50 am
Posts: 13
Ok, that was not a bug, restart worked fine. Before the restart, the output was not even showing on the console output, there somehing wrong with my eclipse, but it's fine now.

About the previous (edited) question, I figured out that tableToClassName would do the trick, there would be no need for meta attributes. :)

Thanks!!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 29, 2007 10:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
ok good to hear its not broken ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 07, 2007 12:45 pm 
Beginner
Beginner

Joined: Tue Jan 30, 2007 1:35 pm
Posts: 27
Hi marcelotmelo,

Could you please let me see your hibernate-log4j.properties please ? I try to modify mine and restart but it is not working.

### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

### direct messages to file hibernate.log ###
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=hibernate.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n

### set log levels - for more verbose logging change 'info' to 'debug' ##

log4j.rootLogger=warn, stdout, file
log4j.logger.net.sf.hibernate=info

Thanks in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.