hi ole, I'd suggest to use commmons-logging. it's a wrapper around the real logging implementations and if you use it you're not tied to a specific implementation. it will e.g. automatically use log4j if available and fallback to e.g. JDK loggin.
cocoon, mainly because of historical reasons (Avalon), uses logkit. hibernate also uses commons-logging. your logging configuration (where should the stuff for xyz go, etc.) depends on which implementation you choose and you should take a look at the respective documentation. example config snippet (log4j.properties): ... ### direct messages to file hibernate.log ### log4j.appender.hibernate=org.apache.log4j.FileAppender log4j.appender.hibernate.File=hibernate.log log4j.appender.hibernate.layout=org.apache.log4j.PatternLayout log4j.appender.hibernate.layout.ConversionPattern=%d %5p %c:%L - %m%n ### set log levels - for more verbose logging change 'info' to 'debug' ## log4j.logger.net.sf.hibernate=info, hibernate ... HTH > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Auftrag > von Hildebrandt, Ole > Gesendet: Donnerstag, 27. Mai 2004 14:44 > An: [EMAIL PROTECTED] > Betreff: Confusion about Logging > > > Hi, > > I am starting to get a little confused about how to log in > Cocoon. Exploring > the WEB-INF/Lib directory I identified these libs having something to do > with logging. > > - excalibur-logger-1.0.1.jar > - logfactor5-1.2.8.jar > - logkit-1.2.jar > - commons-logging-1.0.3.jar > - avalon-framework-4.1.4.jar > > Now my question is: Which Library/Logging-Framework do I use to log > something from within a native Java-Business-Class? Which one is used by > cocoon itself? How can I define, that the logs from the business-classes > should go into a certain logfile? I am also going to use Hibernate, so I > don't want to have Cocoon, Hibernate and the Business-Java-Classes using > different Logging-Frameworks. Maybe somebody can help me out here or point > me to a nice how-to or tutorial? > > Thanks > > Ole > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]