Orbeon logging

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Orbeon logging

pappleby
Hello,

I've been attempting (and failing) to get Orbeon logging going correctly. I get absolutely nothing logged.

We have the following setup:

Orbeon 3.7 beta 1
Tomcat 6.0.18 (running on port 8080)
Running on Windows XP Professional SP 3
We also have eXist running as a standalone application on (port 8088)
We have squid running (on port 8081) - although it makes no difference whether it is or not

I've configured Log4J (file below). I'm new to Log4j so it's quite possible I'm doing something wrong. (eXist logging is working fine as is Tomcat logging as far as I can tell)

I have the following line in properties.xml:

<property as="xs:anyURI"  name="oxf.log4j-config" value="oxf:/config/log4j.xml"/>

I've done as suggested at:

http://www.orbeon.com/ops/doc/reference-xforms-configuration#xforms-logging

Any help much appreciated - I'm stumped.

Log4J file:

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" xmlns="http://jakarta.apache.org/log4j/">
       
        <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
               
                <layout class="org.apache.log4j.PatternLayout">
                       
                </layout>
                <filter class="org.apache.log4j.varia.LevelRangeFilter">
                       
                </filter>
        </appender>
       
        <appender name="ChainsawAppender" class="org.apache.log4j.net.SocketAppender">
               
               
               
        </appender>
       
        <appender name="OPSMonitor" class="org.apache.log4j.net.SocketHubAppender">
               
               
                <filter class="org.apache.log4j.varia.LevelRangeFilter">
                       
                </filter>
        </appender>
       
        <appender name="SingleFileAppender" class="org.apache.log4j.FileAppender">
               
               
                <layout class="org.apache.log4j.PatternLayout">
                       
                </layout>
        </appender>
       
        <appender name="RollingFileAppender" class="org.apache.log4j.RollingFileAppender">
               
               
               
                <layout class="org.apache.log4j.PatternLayout">
                       
                </layout>
        </appender>
        <category name="org.orbeon.oxf.xforms.processor.XFormsServer">
                <priority value="debug"/>
        </category>
        <category name="org.orbeon.oxf.xforms.XFormsInstance">
                <priority value="debug"/>
        </category>
        <category name="org.orbeon.oxf.xforms.processor.XFormsModelSubmission">
                <priority value="debug"/>
        </category>
       
        <category name="org.orbeon.oxf.processor.xmldb.XMLDBProcessor">
                <priority value="debug"/>
        </category>
        <category name="org.orbeon.oxf.processor.sql.SQLProcessor">
                <priority value="debug"/>
        </category>
        <category name="org.orbeon.oxf.processor.PageFlowControllerProcessor">
                <priority value="debug"/>
        </category>
        <category name="org.orbeon.oxf.processor.generator.RequestGenerator">
                <priority value="debug"/>
        </category>
        <category name="org.orbeon.oxf.webapp.OPSSessionListener">
                <priority value="info"/>
        </category>
        <category name="org.orbeon.oxf.webapp.OPSServletContextListener">
                <priority value="info"/>
        </category>
       
        <category name="org.exist.storage.btree.Paged">
                <priority value="warn"/>
        </category>
        <category name="org.exist.storage.DBBroker">
                <priority value="warn"/>
        </category>
        <category name="org.exist.storage.BrokerPool">
                <priority value="warn"/>
        </category>
       
        <root>
                <priority value="debug"/>
               
               
                <appender-ref ref="SingleFileAppender"/>
               
               
        </root>
</log4j:configuration>

Thanks

Paul
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon logging

Hank Ratzesberger

Paul,

The SingleFileAppender is enabled (at the bottom) but not
configured with a filename.  And no pattern specified.

Just to get a test working, try this with a complete path
to your log file:

<appender name="SingleFileAppender"  
class="org.apache.log4j.FileAppender">
     <param name="File" value="/absolute/path/to/orbeon.log"/>
     <param name="Append" value="false" />
     <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="%d{ISO8601} %-5p %c
{1} %x - %m%n"/>
     </layout>
</appender>

Fingers crossed,
Hank



On Apr 17, 2009, at 7:50 AM, Paul Appleby wrote:

>
> Hello,
>
> I've been attempting (and failing) to get Orbeon logging going  
> correctly. I
> get absolutely nothing logged.
>
> We have the following setup:
>
> Orbeon 3.7 beta 1
> Tomcat 6.0.18 (running on port 8080)
> Running on Windows XP Professional SP 3
> We also have eXist running as a standalone application on (port 8088)
> We have squid running (on port 8081) - although it makes no difference
> whether it is or not
>
> I've configured Log4J (file below). I'm new to Log4j so it's quite  
> possible
> I'm doing something wrong. (eXist logging is working fine as is Tomcat
> logging as far as I can tell)
>
> I have the following line in properties.xml:
>
> <property as="xs:anyURI"  name="oxf.log4j-config"
> value="oxf:/config/log4j.xml"/>
>
> I've done as suggested at:
>
> http://www.orbeon.com/ops/doc/reference-xforms-configuration#xforms- 
> logging
>
> Any help much appreciated - I'm stumped.
>
> Log4J file:
>
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> xmlns="http://jakarta.apache.org/log4j/">
> <!-- This is the standard log appender to the console (System.out)  
> -->
> <appender name="ConsoleAppender"  
> class="org.apache.log4j.ConsoleAppender">
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
>
> </filter>
> </appender>
> <!-- Chainsaw is a graphical appender-->
> <appender name="ChainsawAppender"
> class="org.apache.log4j.net.SocketAppender">
>
>
>
> </appender>
> <!-- This is the Orbeon Forms Studio monitor -->
> <appender name="OPSMonitor"  
> class="org.apache.log4j.net.SocketHubAppender">
>
>
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
>
> </filter>
> </appender>
> <!-- Logging to a single file, typically used in development when  
> you don't
> want
>          to be dealing with multiple files generated by the
> RollingFileAppender.
>          See:
> http://logging.apache.org/log4j/docs/api/org/apache/log4j/ 
> FileAppender.html
> -->
> <appender name="SingleFileAppender"  
> class="org.apache.log4j.FileAppender">
>
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> </appender>
> <!-- Logging to a rolling files. Every time the file exceeds a  
> certain
> size, a backup
>          is created and the file used for logging is truncated.
>          See:
> http://logging.apache.org/log4j/docs/api/org/apache/log4j/ 
> RollingFileAppender.html
> -->
> <appender name="RollingFileAppender"
> class="org.apache.log4j.RollingFileAppender">
>
>
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> </appender>
> <category name="org.orbeon.oxf.xforms.processor.XFormsServer">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.xforms.XFormsInstance">
> <priority value="debug"/>
> </category>
> <category  
> name="org.orbeon.oxf.xforms.processor.XFormsModelSubmission">
> <priority value="debug"/>
> </category>
> <!-- To enable logging for any of the sub-systems below, copy that  
> section
> outside of the
>          comment block. The XFormsServer is the one you are most  
> likely to
> be interested in. -->
> <category name="org.orbeon.oxf.processor.xmldb.XMLDBProcessor">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.processor.sql.SQLProcessor">
> <priority value="debug"/>
> </category>
> <category  
> name="org.orbeon.oxf.processor.PageFlowControllerProcessor">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.processor.generator.RequestGenerator">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.webapp.OPSSessionListener">
> <priority value="info"/>
> </category>
> <category name="org.orbeon.oxf.webapp.OPSServletContextListener">
> <priority value="info"/>
> </category>
> <!-- Prevent extra display of eXist paging activity -->
> <category name="org.exist.storage.btree.Paged">
> <priority value="warn"/>
> </category>
> <category name="org.exist.storage.DBBroker">
> <priority value="warn"/>
> </category>
> <category name="org.exist.storage.BrokerPool">
> <priority value="warn"/>
> </category>
> <!-- You decide here which one of the loggers listed above you  
> want to use.
> -->
> <root>
> <priority value="debug"/>
> <!--<appender-ref ref="ConsoleAppender"/>-->
> <!--<appender-ref ref="ChainsawAppender"/>-->
> <appender-ref ref="SingleFileAppender"/>
> <!--<appender-ref ref="RollingFileAppender"/>-->
> <!--<appender-ref ref="OPSMonitor"/>-->
> </root>
> </log4j:configuration>
>
> Thanks
>
> Paul
> --
> View this message in context: http://www.nabble.com/Orbeon-logging- 
> tp23099181p23099181.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: Orbeon logging

pappleby
Looks like my XML got mangled. I've actually had:

    <appender name="SingleFileAppender"
class="org.apache.log4j.FileAppender">
        <param name="File" value="../logs/orbeon.log"/>
        <param name="Append" value="false" />
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{ISO8601} %-5p
%c{1} %x - %m%n"/>
        </layout>
    </appender>

But that didn't work.

Changing it to an absolute path has done the trick.

Many thanks

Paul

-----Original Message-----
From: Hank Ratzesberger [mailto:[hidden email]]
Sent: 17 April 2009 16:04
To: [hidden email]
Subject: [ops-users] Re: Orbeon logging


Paul,

The SingleFileAppender is enabled (at the bottom) but not configured
with a filename.  And no pattern specified.

Just to get a test working, try this with a complete path to your log
file:

<appender name="SingleFileAppender"  
class="org.apache.log4j.FileAppender">
     <param name="File" value="/absolute/path/to/orbeon.log"/>
     <param name="Append" value="false" />
     <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="%d{ISO8601} %-5p %c {1}
%x - %m%n"/>
     </layout>
</appender>

Fingers crossed,
Hank



On Apr 17, 2009, at 7:50 AM, Paul Appleby wrote:

>
> Hello,
>
> I've been attempting (and failing) to get Orbeon logging going
> correctly. I get absolutely nothing logged.
>
> We have the following setup:
>
> Orbeon 3.7 beta 1
> Tomcat 6.0.18 (running on port 8080)
> Running on Windows XP Professional SP 3 We also have eXist running as
> a standalone application on (port 8088) We have squid running (on port

> 8081) - although it makes no difference whether it is or not
>
> I've configured Log4J (file below). I'm new to Log4j so it's quite
> possible I'm doing something wrong. (eXist logging is working fine as
> is Tomcat logging as far as I can tell)
>
> I have the following line in properties.xml:
>
> <property as="xs:anyURI"  name="oxf.log4j-config"
> value="oxf:/config/log4j.xml"/>
>
> I've done as suggested at:
>
> http://www.orbeon.com/ops/doc/reference-xforms-configuration#xforms-
> logging
>
> Any help much appreciated - I'm stumped.
>
> Log4J file:
>
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> xmlns="http://jakarta.apache.org/log4j/">
> <!-- This is the standard log appender to the console
(System.out)

> -->
> <appender name="ConsoleAppender"  
> class="org.apache.log4j.ConsoleAppender">
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
>
> </filter>
> </appender>
> <!-- Chainsaw is a graphical appender-->
> <appender name="ChainsawAppender"
> class="org.apache.log4j.net.SocketAppender">
>
>
>
> </appender>
> <!-- This is the Orbeon Forms Studio monitor -->
> <appender name="OPSMonitor"  
> class="org.apache.log4j.net.SocketHubAppender">
>
>
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
>
> </filter>
> </appender>
> <!-- Logging to a single file, typically used in development
when you

> don't want
>          to be dealing with multiple files generated by the
> RollingFileAppender.
>          See:
> http://logging.apache.org/log4j/docs/api/org/apache/log4j/
> FileAppender.html
> -->
> <appender name="SingleFileAppender"  
> class="org.apache.log4j.FileAppender">
>
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> </appender>
> <!-- Logging to a rolling files. Every time the file exceeds a
> certain size, a backup
>          is created and the file used for logging is truncated.
>          See:
> http://logging.apache.org/log4j/docs/api/org/apache/log4j/
> RollingFileAppender.html
> -->
> <appender name="RollingFileAppender"
> class="org.apache.log4j.RollingFileAppender">
>
>
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> </appender>
> <category name="org.orbeon.oxf.xforms.processor.XFormsServer">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.xforms.XFormsInstance">
> <priority value="debug"/>
> </category>
> <category
> name="org.orbeon.oxf.xforms.processor.XFormsModelSubmission">
> <priority value="debug"/>
> </category>
> <!-- To enable logging for any of the sub-systems below, copy
that

> section outside of the
>          comment block. The XFormsServer is the one you are most
> likely to be interested in. -->
> <category name="org.orbeon.oxf.processor.xmldb.XMLDBProcessor">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.processor.sql.SQLProcessor">
> <priority value="debug"/>
> </category>
> <category
> name="org.orbeon.oxf.processor.PageFlowControllerProcessor">
> <priority value="debug"/>
> </category>
> <category
name="org.orbeon.oxf.processor.generator.RequestGenerator">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.webapp.OPSSessionListener">
> <priority value="info"/>
> </category>
> <category
name="org.orbeon.oxf.webapp.OPSServletContextListener">

> <priority value="info"/>
> </category>
> <!-- Prevent extra display of eXist paging activity -->
> <category name="org.exist.storage.btree.Paged">
> <priority value="warn"/>
> </category>
> <category name="org.exist.storage.DBBroker">
> <priority value="warn"/>
> </category>
> <category name="org.exist.storage.BrokerPool">
> <priority value="warn"/>
> </category>
> <!-- You decide here which one of the loggers listed above you
want

> to use.
> -->
> <root>
> <priority value="debug"/>
> <!--<appender-ref ref="ConsoleAppender"/>-->
> <!--<appender-ref ref="ChainsawAppender"/>-->
> <appender-ref ref="SingleFileAppender"/>
> <!--<appender-ref ref="RollingFileAppender"/>-->
> <!--<appender-ref ref="OPSMonitor"/>-->
> </root>
> </log4j:configuration>
>
> Thanks
>
> Paul
> --
> View this message in context: http://www.nabble.com/Orbeon-logging-
> tp23099181p23099181.html
> Sent from the ObjectWeb OPS - Users mailing list archive at
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. For more information on a proactive anti-virus
service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


***********************************************************************************************
This email, including any attachment, is confidential and may be legally privileged.  If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.  

Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.

Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards.
***********************************************************************************************

The Stationery Office Limited is registered in England No. 3049649 at Clifton House, Worship Street, London, EC2A 2EJ.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon logging

pappleby
In reply to this post by Hank Ratzesberger
Looks like my XML got mangled. I've actually had:

    <appender name="SingleFileAppender" class="org.apache.log4j.FileAppender">
       
       
        <layout class="org.apache.log4j.PatternLayout">
           
        </layout>
    </appender> 

But that didn't work.

Changing it to an absolute path has done the trick.

Many thanks

Paul



Hank Ratzesberger wrote
Paul,

The SingleFileAppender is enabled (at the bottom) but not
configured with a filename.  And no pattern specified.

Just to get a test working, try this with a complete path
to your log file:

<appender name="SingleFileAppender"  
class="org.apache.log4j.FileAppender">
     
     
     <layout class="org.apache.log4j.PatternLayout">
         
     </layout>
</appender>

Fingers crossed,
Hank



On Apr 17, 2009, at 7:50 AM, Paul Appleby wrote:

>
> Hello,
>
> I've been attempting (and failing) to get Orbeon logging going  
> correctly. I
> get absolutely nothing logged.
>
> We have the following setup:
>
> Orbeon 3.7 beta 1
> Tomcat 6.0.18 (running on port 8080)
> Running on Windows XP Professional SP 3
> We also have eXist running as a standalone application on (port 8088)
> We have squid running (on port 8081) - although it makes no difference
> whether it is or not
>
> I've configured Log4J (file below). I'm new to Log4j so it's quite  
> possible
> I'm doing something wrong. (eXist logging is working fine as is Tomcat
> logging as far as I can tell)
>
> I have the following line in properties.xml:
>
> <property as="xs:anyURI"  name="oxf.log4j-config"
> value="oxf:/config/log4j.xml"/>
>
> I've done as suggested at:
>
> http://www.orbeon.com/ops/doc/reference-xforms-configuration#xforms- 
> logging
>
> Any help much appreciated - I'm stumped.
>
> Log4J file:
>
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> xmlns="http://jakarta.apache.org/log4j/">
>
> <appender name="ConsoleAppender"  
> class="org.apache.log4j.ConsoleAppender">
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
>
> </filter>
> </appender>
>
> <appender name="ChainsawAppender"
> class="org.apache.log4j.net.SocketAppender">
>
>
>
> </appender>
>
> <appender name="OPSMonitor"  
> class="org.apache.log4j.net.SocketHubAppender">
>
>
> <filter class="org.apache.log4j.varia.LevelRangeFilter">
>
> </filter>
> </appender>
>
> <appender name="SingleFileAppender"  
> class="org.apache.log4j.FileAppender">
>
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> </appender>
>
> <appender name="RollingFileAppender"
> class="org.apache.log4j.RollingFileAppender">
>
>
>
> <layout class="org.apache.log4j.PatternLayout">
>
> </layout>
> </appender>
> <category name="org.orbeon.oxf.xforms.processor.XFormsServer">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.xforms.XFormsInstance">
> <priority value="debug"/>
> </category>
> <category  
> name="org.orbeon.oxf.xforms.processor.XFormsModelSubmission">
> <priority value="debug"/>
> </category>
>
> <category name="org.orbeon.oxf.processor.xmldb.XMLDBProcessor">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.processor.sql.SQLProcessor">
> <priority value="debug"/>
> </category>
> <category  
> name="org.orbeon.oxf.processor.PageFlowControllerProcessor">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.processor.generator.RequestGenerator">
> <priority value="debug"/>
> </category>
> <category name="org.orbeon.oxf.webapp.OPSSessionListener">
> <priority value="info"/>
> </category>
> <category name="org.orbeon.oxf.webapp.OPSServletContextListener">
> <priority value="info"/>
> </category>
>
> <category name="org.exist.storage.btree.Paged">
> <priority value="warn"/>
> </category>
> <category name="org.exist.storage.DBBroker">
> <priority value="warn"/>
> </category>
> <category name="org.exist.storage.BrokerPool">
> <priority value="warn"/>
> </category>
>
> <root>
> <priority value="debug"/>
>
>
> <appender-ref ref="SingleFileAppender"/>
>
>
> </root>
> </log4j:configuration>
>
> Thanks
>
> Paul
> --
> View this message in context: http://www.nabble.com/Orbeon-logging- 
> tp23099181p23099181.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org  
> mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws