|
|
|
|
|||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Log4J + Torque ... gonna drive me mad.
Hi everyone !
I'm trying to make Torque logging working through LG4J, as it's apparently the only reliable solution (I would have used the native Java Logger interface :'( ). I've tried many many many Google's answers requesting about "torque logging", "torque log4j", "log4j" and more, and I still fail. I now have this configuration .properties section, which is embedded in the Torque.properties (which is by the way correctly loaded by Torque.init()) : log4j.category.default = ALL, default log4j.appender.default = log4j.appender.default.file = log/data.log log4j.appender.default.layout = org.apache.log4j.PatternLayout = %d [%t] %-5p %c - %m%n = 5 = 5MB log4j.appender.default.append = true Is Torque supposed to init LG4J at Torque.init( filePath ) phase ? How could I proceed ? I always get this message at app's startup : log4j:WARN No appenders could be found for logger (). log4j:WARN Please initialize the log4j system properly. Thus, I've got absolutely no log Please, help :'( Many thanks in advance. -- Pierre. Some people, when confronted with a problem, think "I know, I'll use XML". Now they have two problems. -- Jamie Zawinski / James Robertson |
|
#2
|
|||
|
|||
|
Log4J + Torque ... gonna drive me mad.
Torque does not initialize log4j. Initialize log4j yourself and it will
work. Thomas Hi everyone ! I'm trying to make Torque logging working through LG4J, as it's apparently the only reliable solution (I would have used the native Java Logger interface :'( ). I've tried many many many Google's answers requesting about "torque logging", "torque log4j", "log4j" and more, and I still fail. I now have this configuration .properties section, which is embedded in the Torque.properties (which is by the way correctly loaded by Torque.init()) : log4j.category.default = ALL, default log4j.appender.default = log4j.appender.default.file = log/data.log log4j.appender.default.layout = org.apache.log4j.PatternLayout = %d [%t] %-5p %c - %m%n = 5 = 5MB log4j.appender.default.append = true Is Torque supposed to init LG4J at Torque.init( filePath ) phase ? How could I proceed ? I always get this message at app's startup : log4j:WARN No appenders could be found for logger (). log4j:WARN Please initialize the log4j system properly. Thus, I've got absolutely no log Please, help :'( Many thanks in advance. -- Pierre. Some people, when confronted with a problem, think "I know, I'll use XML". Now they have two problems. -- Jamie Zawinski / James Robertson |
![]() |
| Viewing: Web Development Archives > Mailing Lists > DSM > Log4J + Torque ... gonna drive me mad. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|