The content of the attribute is arbitrary, it is just a string that will be displayed in your log file before the XML document.

By default, the log4j configuration will cause the output to be logged to the console (typically the standard output of Tomcat). To change the configuration, you can configure your config/log4j.xml file to output to a file on disk. After the configuration is changed, you have to restart Tomcat.

For example:

    <appender name="FileAppender" class="org.apache.log4j.FileAppender">
        <param name="File" value="c:/oxf.log"/>
        <param name="Append" value="false" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%t %-5p %c{2} - %m%n"/>
        </layout>
    </appender>

    <root>
        <priority value="INFO"/>
        <appender-ref ref="FileAppender"/>
    </root>

You can also log to the Chainsaw graphical appender, which is quite convenient:

<appender name="ChainsawAppender" class="org.apache.log4j.net.SocketAppender">
<param name="RemoteHost" value="localhost"/>
<param name="Port" value="4445"/>
<param name="LocationInfo" value="true"/>
</appender>


    <root>
        <priority value="INFO"/>
        <appender-ref ref="ChainsawAppender"/>
    </root>

-Erik

Tony Tay wrote:
hi Erik,

Why is it "my-sql-result" as the value for the debug attribute?  I tried
that and nothing was shown in the log file (localhost_log_<DATE>).

If i want to debug other values, say, "data" instead, is that possible.  How
do i use the debug attribute ?


------------------------------

Message: 2
Date: Mon, 29 Mar 2004 17:44:28 -0800
From: Erik Bruchez <[EMAIL PROTECTED]>
Subject: Re: Using OXF debug
To: OXF Users <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii; format=flowed

Hi, just put a debug attribute, e.g.:

<p:output name="data" ref="data"/>

becomes:

<p:output name="data" ref="data" debug="my-sql-result"/>

-Erik

Tony Tay wrote:


hi,

how do i use oxf debugger for the following .xpl to check if the data

was


returned from oracle DB ?

---------------------- start of populate.xpl -------------------------

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";
    xmlns:sql="http://orbeon.org/oxf/xml/sql";>

<p:processor uri="oxf/processor/sql">
     <p:input name="data"><dummy/></p:input>
     <p:input name="config">
         <sql:config xmlns:sql="http://orbeon.org/oxf/xml/sql";>
             <auctions>
                 <sql:connection>
                     <sql:datasource>db</sql:datasource>
                     <sql:execute>
                         <sql:query>
                             select * from auction
                         </sql:query>
                         <sql:results>
                             <sql:row-results>
                                 <row>
                                     <sql:get-columns format="xml"/>
                                 </row>
                             </sql:row-results>
                         </sql:results>
                     </sql:execute>
                 </sql:connection>
             </auctions>
         </sql:config>
     </p:input>
  <p:output name="data" ref="data"/>
</p:processor>
</p:config>



_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users


------------------------------

Message: 3
Date: Tue, 30 Mar 2004 11:34:35 -0800
From: "Peter Charles" <[EMAIL PROTECTED]>
Subject: passing information between pages
To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Hello,

Is there any method other than using the session to pass information
between pages?

For instance, have the updated xform from page one, be the sent as an
input to an xpl in page two.

Thanks

Peter





-----<CDE/>-----
Center for Document Engineering
University of California, Berkeley
cde.berkeley.edu



------------------------------

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users


End of oxf-users Digest, Vol 11, Issue 20 *****************************************


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to