Hello Csaba,

> I would like to read the log4php logs by Apache Chainsaw logviewer, but it
> only accept log4j xml, how can I produce log4j xml log by log4php.

Attention:
https://issues.apache.org/jira/browse/LOG4PHP-87

> I saw the api, where i guess the LoggerLayoutXml.setLog4jNamespace should be
> used, but there is no example.
> Can somebody show me how to configure the log4php to produce log4j xml.

The docs are wrong, thatnks for the pointer. The param you need to set is:

<layout class="LoggerLayoutXml">
        <param name="log4jNamespace" value="true" />
</layout>

Please let us know about your experiences. I would like to make
Chainsaw work with log4php, but have not tried it myself. If you have
trouble, pleaes let us know.

Cheers
Christian

>
> Thanks in advance.
>
> Csaba
>
> PS: according to the documentation here
> http://logging.apache.org/log4php/docs/appender/layout.html#LoggerLayoutXml
> LoggerLayoutXml only has one and only configurable parameter is
> :locationInfo
> It looks like not enough for me.
>
> --
> View this message in context: 
> http://old.nabble.com/settings-of-log4php-for-Apache---Chainsaw-logviewer-%28log4j-format%29-tp32232747p32232747.html
> Sent from the Log4php - Users mailing list archive at Nabble.com.
>
>



-- 
http://www.grobmeier.de

Reply via email to