I'm not exactly sure when the following feature was added to the stratum 
ComponentLoader but I'm using a
stratum-1.0-b2-dev.jar from May 15th and it's definately in there.

Ok, what you do is add some properties to the Torque component in your TRP like this 
(the last two lines are
new):

component.name = torque
component.torque.classname = org.apache.torque.Torque
component.torque.config = ${webappRoot}/WEB-INF/conf/Torque.properties
component.torque.property.applicationRoot = ${applicationRoot}
component.torque.property.webappRoot = ${webappRoot}

And then in your Torque.properties file you replace

log4j.appender.org.apache.torque.file = ${torque.applicationRoot}/logs/torque.log

with

log4j.appender.org.apache.torque.file = ${applicationRoot}/logs/torque.log

And presto !

Age


> -----Original Message-----
> From: Humberto Hernandez Torres [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 21, 2002 21:43
> To: [EMAIL PROTECTED]
> Subject: Torque log4j debugging
>
>
> I am using torque 3.0-b2 with turbine 2.2  and I am trying to configure it
> to be able to see the queries. I have looked unsuccesfully in the log4j
> documentation as well as in the torque site, this list archive, and the
> torque source code.
>
> I have restarted the server and looked all over the disk for the torque.log.
> I have also tried with different values in the Torque.properties.
>
> Does any one have any hints in what I can do to see the generated select
> statements.
> --
>   Humberto
>
> ----------------------------------------
> torque.applicationRoot = .
>
> # -------------------------------------------------------------------
> #
> #  L O G G I N G
> #
> # -------------------------------------------------------------------
> # We use Log4J for all Torque logging and we embed the log4j
> # properties within our application configuration.
> # -------------------------------------------------------------------
>
> # This first category is required and the category
> # must be named 'default'. This is used for all logging
> # where an explicit category is not specified.
>
> log4j.category.org.apache.torque = DEBUG, org.apache.torque
> log4j.appender.org.apache.torque = org.apache.log4j.FileAppender
> log4j.appender.org.apache.torque.file =
> ${torque.applicationRoot}/logs/torque.log
> log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout
> log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p %c
> - %m%n
> log4j.appender.org.apache.torque.append = false
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to