Did you try simply modifying the level on your project. I should
already be set to debug, but you might have to tail the catalina.out
log file instead of looking at the console you're running Cargo in.

Matt

On Thu, Sep 4, 2008 at 7:38 PM, Andrew Sky <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>  I am using Appfuse 2.0.2 to develop a swing struts2-hibernate project. I am
> testing my application with the following "mvn cargo:start
> -Dcargo.wait=true" The issue i have is how to turn on debugging such that
> the debug info can be logged into a file in the tomcat log folder ?
> Below are the steps i tried but failed to see any text file in any of the
> tomcat folder. Do i have to modify any xml file in the tomcat folder ?
>
> 1) Add the following into the log4j xml file. Apology for some missing
> portion as i am not sure why it is missing when i preview the message.
>
> <appender name="appender" class="org.apache.log4j.FileAppender">
>
>
>   <layout class="org.apache.log4j.PatternLayout">
>
>   </layout>
> </appender>
>
> <logger name="com.company.app">
>        <level value="DEBUG"/>
>        <appender-ref ref="appender"/>
> </logger>
>
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-log-debug-info-to-file-when-running-tomcat-in-cargo-container-tp19323339s2369p19323339.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to