|
Re: Don't get Torque's loggin to work: msg#00072jakarta.turbine.torque.user
Hi Daniel, Sorry if I point out the obvious: Do you have log4j.jar in your runtime classpath? If yes, did you try to create log messages "by hand", i.e. to fetch a log4j logger and write log messages to it, and see what happens ? I have never tried do configure log4j via torque.properties, I have always done it "by hand" (i.e. I use log4j's Configurators). This works fine for me. Thomas "Vitzethum, Daniel" <Daniel.Vitzethum@xxxxxxxxxxxxxx> schrieb am 15.11.2004 17:30:29: > Hi there, > > everything works quite fine with Torque 3.1, but i can't get > that logging to work (at runtime). > > I've tried to use/modify the log4j props in Torque.properties, > even using the ConsoleAppender, like that, > > ---- > log4j.category.org.apache.torque = DEBUG, org.apache.torque > log4j.appender.org.apache.torque = org.apache.log4j.FileAppender > #log4j.appender.org.apache.torque = org.apache.log4j.ConsoleAppender > log4j.appender.org.apache.torque.file = ./torque.log > log4j.appender.org.apache.torque.layout = org.apache.log4j.SimpleLayout > #log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] > %-5p %c - %m%n > log4j.appender.org.apache.torque.append = false > > # and added: > log4j.logger.org.apache.torque.util.BasePeer = DEBUG > ---- > > I'm relatively sure that the torque-gen.jar is not on my runtime > classpath, as > mentioned in http://wiki.apache.org/db-torque/FrequentlyAskedQuestions > FAQ 12. > > In addition, telling my container > "-Dlog4j.configuration=%CONFIG_DIR%\Torque.properties" > with relative or absolute path stayed without result. > > Can anyone point me out how to configure the logging? > > > Thanks in advance, > > Daniel > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@xxxxxxxxxxxxx > For additional commands, e-mail: torque-user-help@xxxxxxxxxxxxx > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Don't get Torque's loggin to work: 00072, Vitzethum, Daniel |
|---|---|
| Next by Date: | Using torque: 00072, Pedro Castro |
| Previous by Thread: | Don't get Torque's loggin to worki: 00072, Vitzethum, Daniel |
| Next by Thread: | Using torque: 00072, Pedro Castro |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |