<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>log4php-user@logging.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/logging-log4php-user/</id>
<updated>2009-12-07T17:29:06Z</updated>
<entry>
<title>[ANN] Welcome Christian Hammers</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200910.mbox/%3cded132f10910031627sabad586ib4825b999b462fe2@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10910031627sabad586ib4825b999b462fe2@mail-gmail-com%3e</id>
<updated>2009-10-03T23:27:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear all,

please welcome Christian Hammers as a new committer to the Log4PHP project.

The Log4PHP PMC elected him after providing so much valuable
contributions. We are sure that he is a great addition to our
community :-) - please join me with warm greetings.

So, welcome and cheers!

Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Where is LoggerManager?</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200908.mbox/%3cded132f10908201310k26163174t3345341430371eb@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10908201310k26163174t3345341430371eb@mail-gmail-com%3e</id>
<updated>2009-08-20T20:10:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; I grabbed the trunk and I can't see the LoggerManager.php file anywhere. Is
&gt; it obselete. The quick start and examples all reference it.

Yes, its obsolete. Instead the Logger.php class must be used.

There is already an issue open for this task:
http://issues.apache.org/jira/browse/LOG4PHP-70

If you would like to help, we would be very thankful :-)

Thanks
Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>Where is LoggerManager?</title>
<author><name>rkw &lt;wippel@nortel.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200908.mbox/%3c25068798.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25068798-post@talk-nabble-com%3e</id>
<updated>2009-08-20T19:54:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I grabbed the trunk and I can't see the LoggerManager.php file anywhere. Is
it obselete. The quick start and examples all reference it.
-- 
View this message in context: http://www.nabble.com/Where-is-LoggerManager--tp25068798p25068798.html
Sent from the Log4php - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>New Website online</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200908.mbox/%3cded132f10908040141j72a245ebi385d27fcdc5e879d@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10908040141j72a245ebi385d27fcdc5e879d@mail-gmail-com%3e</id>
<updated>2009-08-04T08:41:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear all,

as you may have noticed, we recently spent lots of time for updating
the website. Of course its not finished as it developes with the
software. But a new version of the Log4PHP Site can be found here:
http://incubator.apache.org/log4php/

We included project reports like Code coverage or PHPUnit testing
results. Additionally we published all the changes which are currently
done in the trunk. Besides that we have updated some documentation.

A "how to contribute" for the guys of you who always wanted to help
with Log4PHP can be found here:
http://incubator.apache.org/log4php/volunteering.html
http://incubator.apache.org/log4php/contributingpatches.html

Please feel free to help with the development! Any suggestions,
contributions are welcome, be it documentation, users experience, code
patches.

Thanks,
Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Log4PHP Logo</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200908.mbox/%3cded132f10908030332q6fe291d7rde95e7f260bf5384@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10908030332q6fe291d7rde95e7f260bf5384@mail-gmail-com%3e</id>
<updated>2009-08-03T10:32:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; I share office building with a graphics agency, and have pitched the idea of
&gt; a logo for log4php, and a few have shown interest for the task. Hopefully
&gt; ill be back with a few suggestions in a couple of days.

Thats great!
I have created a Wiki-Page for all submissions:
http://wiki.apache.org/logging/Log4PHP/LogoProposals

Please feel free to add your proposals there

Thanks
Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Log4PHP Logo</title>
<author><name>&quot;Gavin&quot; &lt;gavin@16degrees.com.au&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200908.mbox/%3c6186B4213E3D460F893218FADE862731@developer%3e"/>
<id>urn:uuid:%3c6186B4213E3D460F893218FADE862731@developer%3e</id>
<updated>2009-08-02T12:43:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Copied from Dev List:

&gt; -----Original Message-----
&gt; From: Christian Grobmeier [mailto:grobmeier@gmail.com]
&gt; Sent: Sunday, 2 August 2009 10:29 PM
&gt; To: Log4PHP Dev
&gt; Subject: Re: Log4PHP Logo
&gt; 
&gt; Hi,
&gt; 
&gt; &gt; I think it would be good branding if Log4PHP were to have a logo of its
&gt; own.
&gt; 
&gt; I agree!
&gt; 
&gt; &gt; 1. Do we want to do this?
&gt; 
&gt; Yes!
&gt; 
&gt; &gt; 2. If yes to Q1, who wants to take a stab at producing one?
&gt; 
&gt; I have bought a photoshop license before ages, I can start doing one.
&gt; But anyway, there might be more competent webworkers on the users
&gt; list, so I think we should ask there.

Good plan, I've copied the user list too.

&gt; 
&gt; &gt; In relation to Q2, if we have some interest (i.e. more than one offer),
&gt; we
&gt; &gt; could organise a Logo Competition as other ASF projects have done and
&gt; vote
&gt; &gt; as a community on which we will go for.
&gt; 
&gt; I think this would be good. But: are there enought people subscribed
&gt; on the list?
&gt; I think it would be bad if we would have such a competetion and not a
&gt; single proposal :-)

True, we will see.

There are 49 subscribers to the dev list and 74 subscribers to the user
list, so hopefully a few of those may be interested. (hint ;) )

Gav...

&gt; 
&gt; Christian
&gt; 




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: LoggerPropertyConfigurator::doConfigure() cannot load</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200907.mbox/%3cded132f10907272156t6aaa08c3la2e27337c5c8a8f6@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10907272156t6aaa08c3la2e27337c5c8a8f6@mail-gmail-com%3e</id>
<updated>2009-07-28T04:56:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Anas,

did you try something like:

define('LOG4PHP_CONFIGURATION',
dirname(__FILE__).'/../config/IvLogger.properties');

somewhere? I think the path to configuration should be absolute.
Please provide some code of what you have done if that doesn't help.

Cheers
Christian


&gt; Warning: LoggerPropertyConfigurator::doConfigure() cannot load
&gt; '../../config/IvLogger.properties' configuration. in
&gt; /home1/myhome/private_20090725/log4php/LoggerLog.php on line 95
&gt;
&gt; Warning: LOG4PHP main() Default Init failed. in
&gt; /home1/myhome/private_20090725/log4php/LoggerLog.php on line 95
&gt;
&gt;
&gt; The configuration file is properly available at
&gt; '../../config/IvLogger.properties'
&gt; What could be wrong... please help.
&gt;
&gt; Thanks in advance.
&gt; --
&gt; Anas Mughal
&gt; anasmughal@ yahoo.com
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>LoggerPropertyConfigurator::doConfigure() cannot load</title>
<author><name>Anas Mughal &lt;anasmughal@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200907.mbox/%3c523667.51852.qm@web36803.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c523667-51852-qm@web36803-mail-mud-yahoo-com%3e</id>
<updated>2009-07-28T02:35:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I need help trying to figure why I get the following error on all my pages:




Warning:
LoggerPropertyConfigurator::doConfigure() cannot load
'../../config/IvLogger.properties' configuration. in /home1/myhome/private_20090725/log4php/LoggerLog.php
on line 95


Warning: LOG4PHP main() Default Init failed. in
/home1/myhome/private_20090725/log4php/LoggerLog.php
on line 95 


 The configuration file is properly available at '../../config/IvLogger.properties'
What could be wrong... please help.
 
Thanks in advance.
--Anas Mughal
anasmughal@ yahoo.com
  


      

</pre>
</div>
</content>
</entry>
<entry>
<title>Website Update + Showcase</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200907.mbox/%3cded132f10907221345m47d436a7tddbb62e44e4195a1@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10907221345m47d436a7tddbb62e44e4195a1@mail-gmail-com%3e</id>
<updated>2009-07-22T20:45:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

as already mentioned, we are planning to integrate some kind of a
"showcase" in our new website.
If you are working for a project or a company which is using Log4PHP,
let us know!
Send us your links and maybe one or two sentences about how you use
Log4PHP and we'll
add you on our showcase site.

This one is not live yet, but you'll see how it will look like:
http://ci.apache.org/projects/log4php/showcase.html

Anyway, any other website contributions are welcome!

Thanks in advance,
Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>Log4PHP is blogging</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200907.mbox/%3cded132f10907221342j75382930seca250435b9d322c@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10907221342j75382930seca250435b9d322c@mail-gmail-com%3e</id>
<updated>2009-07-22T20:42:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

as you may have noticed, the Log4PHP team has done tons of stuff in
the currents repo.
Currently we are updating the website and generally try to stay more
in contact with our users.

One of the outcomes is our brandnew blog:
http://blogs.apache.org/log4php/

Let us know on the dev list if you would like to propose something for
the blog or have written
your own success story or tutorial for it. Contributions are welcome!

Best regards,
Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: PHP Version requirement</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200906.mbox/%3cded132f10906232150l4df5ec0fvc4bd38bf2676291e@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10906232150l4df5ec0fvc4bd38bf2676291e@mail-gmail-com%3e</id>
<updated>2009-06-24T04:50:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

So my question is : will log4php work with PHP 5.1.6 (I could for instance
&gt; modify the PHP version requirement in the package-config.php file before
&gt; building the package).
&gt;

you'll need to try out. The code at the trunk is currently in heavy
development and we have not checked the minimal configuration now. There was
a thread in the past, but I am not sure if that one is still appropriate.
I would guess that it will work - give it a try. And please let us know if
you have success :-) Btw, please be aware that there may be bugs in the
current code, since it is in development.


&gt; If not, what other solution do I have ?
&gt;

If it doesn't work with 5.1.x and you cannot upgrade, you don't have another
solution with current code. You could try to check out an older version of
the code which is able to run with PHP4.

Cheers,
Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>PHP Version requirement</title>
<author><name>&quot;sly@libertysurf.fr&quot; &lt;sly@libertysurf.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200906.mbox/%3c24149173.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c24149173-post@talk-nabble-com%3e</id>
<updated>2009-06-22T15:33:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I've built the log4php package (from the SVN trunk) using PEAR. However,
when I try to install it on my server, I get the following message : 

pear/log4php requires PHP (version &gt;= 5.2.0), installed version is 5.1.6

I understand that the minimal PHP version required is 5.2.0 (as specified in
the package-config.php file). The problem for me is that I cannot change the
PHP version (5.1.6) installed on my server. 

So my question is : will log4php work with PHP 5.1.6 (I could for instance
modify the PHP version requirement in the package-config.php file before
building the package). 

If not, what other solution do I have ?

Thanks for your answer,

Sly

-- 
View this message in context: http://www.nabble.com/PHP-Version-requirement-tp24149173p24149173.html
Sent from the Log4php - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Board Report June 2009: Status of Log4PHP</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200906.mbox/%3cded132f10906092200n662b08f0yf09b3078498ac07@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10906092200n662b08f0yf09b3078498ac07@mail-gmail-com%3e</id>
<updated>2009-06-10T05:00:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

Gavin just added the log4php board report to the wiki.
People interested in the current status of the project can have a read here:

* http://wiki.apache.org/incubator/June2009

Thanks,
Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: New committers</title>
<author><name>Knut Urdalen &lt;knut@php.no&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200904.mbox/%3c49F62B15.2030000@php.no%3e"/>
<id>urn:uuid:%3c49F62B15-2030000@php-no%3e</id>
<updated>2009-04-27T22:00:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Gavin wrote:
&gt; Christian Grobmeier and myself have been added as committers to the log4php
&gt; project.
&gt;   
Great! Welcome to the team Christian and Gavin :)
&gt; Hopefully soon we'll get our act together and start looking at those patches
&gt; that some of you have attached to our issue tracker [1]
Very nice! Currently there is 10 "unassigned" tickets in JIRA. And one 
of them is a placeholder for moving the current TODO-list to JIRA as 
well so there is many things we can do here.

If you start working on any tickets and you think you are able to 
resolve it please assign it to yourself so we don't work on the same issues.
&gt;
&gt; For my part, I'd like to help with patches where I can, update the website
&gt; [2] and the Incubator page [3]. With luck I'd also like to help with the
&gt; direction of the project in general, look forward to helping get us an
&gt; incubator release out (the first!) of the door
For the first release I think we can just fix all current tickets in 
JIRA, do some testing and make a release available for download. That 
way we'll get more feedback from what we have in trunk now.

Knut



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: New committers</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200904.mbox/%3cded132f10904262213s34adeb74tb0e7fec192bff17c@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10904262213s34adeb74tb0e7fec192bff17c@mail-gmail-com%3e</id>
<updated>2009-04-27T05:13:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; Christian Grobmeier and myself have been added as committers to the log4php
&gt; project.

Cool you finally made it too ;-)

&gt; Hopefully soon we'll get our act together and start looking at those patches
&gt; that some of you have attached to our issue tracker [1] (Christian I have
&gt; added you to the projects issue tracker so you can now assign issues to
&gt; yourself should you feel the urge :) )

Thanks, you read my thoughts - I will go through the issues next days
and brin up to discussion what needs to be discussed

&gt; For my part, I'd like to help with patches where I can, update the website
&gt; [2] and the Incubator page [3]. With luck I'd also like to help with the
&gt; direction of the project in general, look forward to helping get us an
&gt; incubator release out (the first!) of the door and onwards to promotion from
&gt; the Incubator as a sub-project of logging.apache.org the sponsoring project.
&gt; (That last one could take a while).

I am glad that with you an more expierenced committer than i am is
involved in this project.

Cheers!
Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>New committers</title>
<author><name>&quot;Gavin&quot; &lt;gavin@16degrees.com.au&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200904.mbox/%3c750AA5A12C8D41AE88B5184341966270@developer%3e"/>
<id>urn:uuid:%3c750AA5A12C8D41AE88B5184341966270@developer%3e</id>
<updated>2009-04-27T03:43:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi All,

Christian Grobmeier and myself have been added as committers to the log4php
project.

Hopefully soon we'll get our act together and start looking at those patches
that some of you have attached to our issue tracker [1] (Christian I have
added you to the projects issue tracker so you can now assign issues to
yourself should you feel the urge :) )

For my part, I'd like to help with patches where I can, update the website
[2] and the Incubator page [3]. With luck I'd also like to help with the
direction of the project in general, look forward to helping get us an
incubator release out (the first!) of the door and onwards to promotion from
the Incubator as a sub-project of logging.apache.org the sponsoring project.
(That last one could take a while).

Anyway, those of you that are still here, anything you want concentrating on
first, or any comments in general about the project, fire away!

Gav...

[1] - https://issues.apache.org/jira/browse/LOG4PHP 

[2] - http://incubator.apache.org/log4php/ 

[3] - http://incubator.apache.org/projects/log4php.html





</pre>
</div>
</content>
</entry>
<entry>
<title>log4php is beeing used by the PIWI framework</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200903.mbox/%3cded132f10903061156o7a23a11bu84af0ce4d020d3ed@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10903061156o7a23a11bu84af0ce4d020d3ed@mail-gmail-com%3e</id>
<updated>2009-03-06T19:56:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear all,

I just wanted to let you know that the PIWI framework now uses log4php
as its logging implementation:

* http://code.google.com/p/piwi/

It was really easy to integrate it into PIWI. However, I really would
enjoy a PHP5 branch of log4php.
Has this been discussed allready?

However, I just wanted to let you know - sometimes its motivating
people if other people are appreciating the hard open source work, and
I definitly do :-)

Cheers all,
Christian


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Pipe PHP error output to log4php?</title>
<author><name>Dennis Korbar &lt;denniskorbar@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200902.mbox/%3c29a277d30902281430i695fad8bj3ecf35c926ed3e71@mail.gmail.com%3e"/>
<id>urn:uuid:%3c29a277d30902281430i695fad8bj3ecf35c926ed3e71@mail-gmail-com%3e</id>
<updated>2009-02-28T22:30:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hey Christian,

thanks, that did the job!

Greetings,
Dennis

2009/2/28 Christian Grobmeier &lt;grobmeier@gmail.com&gt;

&gt; Hi,
&gt;
&gt; you could try to use the php exception handler.
&gt; http://de2.php.net/manual/de/function.set-exception-handler.php
&gt; and use the logger there.
&gt; Works fine with PHP5.
&gt;
&gt; Cheers,
&gt; Christian
&gt;
&gt; On Fri, Feb 27, 2009 at 2:37 PM, Dennis Korbar
&gt; &lt;denniskorbar@googlemail.com&gt; wrote:
&gt; &gt; Hello there,
&gt; &gt;
&gt; &gt; I was wondering, is there an easy way to pipe PHP's error output (like
&gt; file
&gt; &gt; not found, etc.) to log4php?
&gt; &gt;
&gt; &gt; Best regards,
&gt; &gt;
&gt; &gt; Dennis
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Pipe PHP error output to log4php?</title>
<author><name>Christian Grobmeier &lt;grobmeier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200902.mbox/%3cded132f10902280352x265ade9bsdffe2b5f830152bb@mail.gmail.com%3e"/>
<id>urn:uuid:%3cded132f10902280352x265ade9bsdffe2b5f830152bb@mail-gmail-com%3e</id>
<updated>2009-02-28T11:52:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

you could try to use the php exception handler.
http://de2.php.net/manual/de/function.set-exception-handler.php
and use the logger there.
Works fine with PHP5.

Cheers,
Christian

On Fri, Feb 27, 2009 at 2:37 PM, Dennis Korbar
&lt;denniskorbar@googlemail.com&gt; wrote:
&gt; Hello there,
&gt;
&gt; I was wondering, is there an easy way to pipe PHP's error output (like file
&gt; not found, etc.) to log4php?
&gt;
&gt; Best regards,
&gt;
&gt; Dennis


</pre>
</div>
</content>
</entry>
<entry>
<title>Pipe PHP error output to log4php?</title>
<author><name>Dennis Korbar &lt;denniskorbar@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200902.mbox/%3c29a277d30902270537o585db231u46652805c3cd30d@mail.gmail.com%3e"/>
<id>urn:uuid:%3c29a277d30902270537o585db231u46652805c3cd30d@mail-gmail-com%3e</id>
<updated>2009-02-27T13:37:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello there,

I was wondering, is there an easy way to pipe PHP's error output (like file
not found, etc.) to log4php?

Best regards,

Dennis


</pre>
</div>
</content>
</entry>
<entry>
<title>log4j compatibility?</title>
<author><name>Gavin Gilmour &lt;gavin.gilmour@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200902.mbox/%3cDB679652-64CE-4810-941D-203501551F0A@gmail.com%3e"/>
<id>urn:uuid:%3cDB679652-64CE-4810-941D-203501551F0A@gmail-com%3e</id>
<updated>2009-02-22T19:15:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi there,

This might be a long shot, but I don't suppose log4j and logphp are  
compatible in terms of socket listeners, appenders and stuff? I'm not  
sure if this was a an aim of the project or anything though I'm now  
thinking no.

I was basically hoping to use something like this plugin [1] for  
eclipse and be able to send messages to it via php. Problem is, it  
seems to run a log4j server which isn't recognizing the messages at  
all and is moaning about a java.io.StreamCorruptedException: invalid  
stream header specifically if I pass it any messages from log4php.

I'd like to even extend/improve that ganymede project to accept  
log4php messages but I'm not sure if I should bother trying if there  
isn't some way to make the messages between the projects compatible  
with one another.

Could somebody tell me if this would be possible in some way?

Cheers,

Gavin.

[1] http://ganymede.sourceforge.net/


</pre>
</div>
</content>
</entry>
<entry>
<title>Status of log4php</title>
<author><name>Danny Angus &lt;danny@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200901.mbox/%3c5ec229170901300300q5d434b3cq5d38b3120903350b@mail.gmail.com%3e"/>
<id>urn:uuid:%3c5ec229170901300300q5d434b3cq5d38b3120903350b@mail-gmail-com%3e</id>
<updated>2009-01-30T11:00:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
I  mailed general@incubator with this question, but I thought I'd ask
it here too;
What is the status of this project? Is it being actively maintained,
and what is the likelyhood that it will graduate and deliver a stable
release?

d.


</pre>
</div>
</content>
</entry>
<entry>
<title>Use case: SiteSupra Platform uses log4php extensively</title>
<author><name>&quot;Joe Kramer&quot; &lt;cckramer@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200812.mbox/%3cb4c00a110812100559s18608cc9t28929b85125d8bde@mail.gmail.com%3e"/>
<id>urn:uuid:%3cb4c00a110812100559s18608cc9t28929b85125d8bde@mail-gmail-com%3e</id>
<updated>2008-12-10T13:59:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

Check out SiteSupra Enterprise PHP Platform, http://www.sitesupra.com/
Its logging framework is built on log4php.

Regards.


</pre>
</div>
</content>
</entry>
<entry>
<title>Name of log4php properties</title>
<author><name>&quot;Robert Naczinski&quot; &lt;robert.naczinski@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200810.mbox/%3c6e1a3e4d0810291401x360e0d08ldd241cbd66d74280@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6e1a3e4d0810291401x360e0d08ldd241cbd66d74280@mail-gmail-com%3e</id>
<updated>2008-10-29T21:01:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

must I call the configuration file  log4php properties ?

Can be name of the file f.e. log4php.txt

Can anybody send me a snippet?

Regards

Robert


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Performance of log4php and use ofRollingFileAppender in log4php</title>
<author><name>Schluessel- und Kopierdienst &lt;s-kd@ira.uka.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200810.mbox/%3ca06240800c525e5ebefd0@%5b141.3.16.162%5d%3e"/>
<id>urn:uuid:%3ca06240800c525e5ebefd0@%5b141-3-16-162%5d%3e</id>
<updated>2008-10-23T08:33:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt;Hi,
&gt;
&gt;log4php works very fine. It's great framework. I know log4j. It's very similiar.
&gt;
&gt;What about performanc of it?

My framework didn't get sensibly slower. Development has become faster, especially debugging
;-)

&gt;
&gt;How is to configure the RollingFileAppender?
&gt;

Read http://www.vxr.it/log4php/qsg.html to get started. Have a look at */src/tests/appenders/configs
for example configuration files.

Markus.

-- 


</pre>
</div>
</content>
</entry>
<entry>
<title>Performance of log4php and use ofRollingFileAppender in log4php</title>
<author><name>&quot;Robert Naczinski&quot; &lt;robert.naczinski@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200810.mbox/%3c6e1a3e4d0810230111s65fe525fy6d54c00cfea2a6c4@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6e1a3e4d0810230111s65fe525fy6d54c00cfea2a6c4@mail-gmail-com%3e</id>
<updated>2008-10-23T08:11:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

log4php works very fine. It's great framework. I know log4j. It's very similiar.

What about performanc of it?

How is to configure the RollingFileAppender?

Regards ,

Robert


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Download early versions of log4php</title>
<author><name>Schluessel- und Kopierdienst &lt;s-kd@ira.uka.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200810.mbox/%3ca06240800c524cc45ed0a@%5b141.3.16.162%5d%3e"/>
<id>urn:uuid:%3ca06240800c524cc45ed0a@%5b141-3-16-162%5d%3e</id>
<updated>2008-10-22T12:26:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Have a look at the original vxr page: http://www.vxr.it/log4php/download.html

hth,
Markus


&gt;Hi,
&gt;
&gt;i'm new here.
&gt;
&gt;How i can get early versions of log4oho.
&gt;
&gt;Regards,
&gt;
&gt;Robert


-- 
Schluessel- und Codekartenverwaltung und Kopierdienst, Fakultaet fuer Informatik
Oeffnungszeiten: Di. und Do., jeweils 10.00 bis 12.30 Uhr
E-Mail: s-kd@ira.uka.de
Raum 116 Geb. 50.34
Tel.: 0721/608-4002
http://www.ira.uka.de/I3V_EXTERN/gf/schluessel.html


</pre>
</div>
</content>
</entry>
<entry>
<title>Download early versions of log4php</title>
<author><name>&quot;Robert Naczinski&quot; &lt;robert.naczinski@googlemail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200810.mbox/%3c6e1a3e4d0810220230o3a2d02fdib64cd2fd7789d0e7@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6e1a3e4d0810220230o3a2d02fdib64cd2fd7789d0e7@mail-gmail-com%3e</id>
<updated>2008-10-22T09:30:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

i'm new here.

How i can get early versions of log4oho.

Regards,

Robert


</pre>
</div>
</content>
</entry>
<entry>
<title>PHP 5.2.5 Strict Standards</title>
<author><name>William Chu &lt;wchu@go2.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200804.mbox/%3c1209449933.6941.4.camel@ca-wchu2.volley.local%3e"/>
<id>urn:uuid:%3c1209449933-6941-4-camel@ca-wchu2-volley-local%3e</id>
<updated>2008-04-29T06:18:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I was using log4php and version 5.1.6 just fine but we just recently
upgraded our servers to run PHP version 5.2.5 and now I'm getting the
following error message.

Strict Standards: Non-static method
LoggerPropertySetter::setPropertiesByObject() should not be called
statically, assuming $this from incompatible context
in /home/wchu/trunk/cmsMason/log4php/LoggerPropertyConfigurator.php on
line 648

Strict Standards: Non-static method
LoggerPropertySetter::setPropertiesByObject() should not be called
statically, assuming $this from incompatible context
in /home/wchu/trunk/cmsMason/log4php/LoggerPropertyConfigurator.php on
line 656 Configuration Error - E13204202012-43

Can anybody shed some light as to what the problem is?

Regards,
Will


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: logging directory... -upfate!</title>
<author><name>&quot;bruce&quot; &lt;bedouglas@earthlink.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c16b801c84f5d$1bdd9b40$0301a8c0@tmesa.com%3e"/>
<id>urn:uuid:%3c16b801c84f5d$1bdd9b40$0301a8c0@tmesa-com%3e</id>
<updated>2008-01-05T05:37:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hi knut.. again!

i seem to have gotten the test to run, generating msgs for different levels
of status/function...

later on, i'll figure out how to do the err/stat msgs based on the function
that the msg is coming from, and the line of the code.

for now, thanks!!!



hi knut!

ok, got the basic test running.. a simple typo was the err.

i've seen examples/chunks of code that allow different msgs based on the
status (error, info, warn, etc...) any pointers as to how i can extend this
to be able to do that as well??

thanks



hi knut...

i tried the following and was unable to generate any output in the test
output file. there is no file in the /var/log dir...


/foo/logtest.php:
#!/usr/bin/php
&lt;?php
define('LOG4PHP_DIR', '/opt/log4php');
define('LOG4PHP_CONFIGURATION', '/opt/log4php/file.properties');
require_once (LOG4PHP_DIR.'/LoggerManager.php');
$logger = LoggerManager::getRootLogger();
$logger-&gt;debug("test!!!");
?&gt;


/opt/log4php/file.properties:
log4php.appender.default = LoggerAppenderFile
log4php.appender.default.file = /var/log/log4php.log
log4php.appender.default.layout = LoggerPatternLayout
log4php.appender.default.layout.conversionPattern="%d{Y-m-d H:i:s} %-5p
%c: %m in %F at %L%n"
log4php.rootLogger = DEBUG, default

/foo/logtest.php 'x' execute for everybody
/opt/log4php/file.properties '666' rw for everybody


any thoughts as to what i've screwed up on?

thanks



-----Original Message-----
From: Knut Urdalen [mailto:knut@php.no]
Sent: Friday, January 04, 2008 5:05 PM
To: Log4PHP User
Subject: Re: logging directory...


bruce wrote:
&gt; basically, i'm trying to find a sample, that uses an ini file (not xml) to
&gt; be able to quickly configure the app, so i can do a test php chunk of
script
&gt; to log some test messages...
&gt;
Here's the most basic examples where you control both the name of the
log4php configuration file, the path to the log-file and the format of
each logging event.

file.php:
&lt;?php
define('LOG4PHP_DIR', '/path/to/log4php');
define('LOG4PHP_CONFIGURATION', dirname(__FILE__).'/file.properties');
require_once LOG4PHP_DIR.'/LoggerManager.php';
$logger = LoggerManager::getRootLogger();
$logger-&gt;debug("Hello World!");
?&gt;

file.properties:
log4php.appender.default = LoggerAppenderFile
log4php.appender.default.file = tmp/file.log
log4php.appender.default.layout = LoggerPatternLayout
log4php.appender.default.layout.conversionPattern="%d{Y-m-d H:i:s} %-5p
%c: %m in %F at %L%n"
log4php.rootLogger = DEBUG, default

Regards,
Knut



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: logging directory... -upfate!</title>
<author><name>&quot;bruce&quot; &lt;bedouglas@earthlink.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c16ad01c84f55$a4bddd60$0301a8c0@tmesa.com%3e"/>
<id>urn:uuid:%3c16ad01c84f55$a4bddd60$0301a8c0@tmesa-com%3e</id>
<updated>2008-01-05T04:44:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hi knut!

ok, got the basic test running.. a simple typo was the err.

i've seen examples/chunks of code that allow different msgs based on the
status (error, info, warn, etc...) any pointers as to how i can extend this
to be able to do that as well??

thanks



hi knut...

i tried the following and was unable to generate any output in the test
output file. there is no file in the /var/log dir...


/foo/logtest.php:
#!/usr/bin/php
&lt;?php
define('LOG4PHP_DIR', '/opt/log4php');
define('LOG4PHP_CONFIGURATION', '/opt/log4php/file.properties');
require_once (LOG4PHP_DIR.'/LoggerManager.php');
$logger = LoggerManager::getRootLogger();
$logger-&gt;debug("test!!!");
?&gt;


/opt/log4php/file.properties:
log4php.appender.default = LoggerAppenderFile
log4php.appender.default.file = /var/log/log4php.log
log4php.appender.default.layout = LoggerPatternLayout
log4php.appender.default.layout.conversionPattern="%d{Y-m-d H:i:s} %-5p
%c: %m in %F at %L%n"
log4php.rootLogger = DEBUG, default

/foo/logtest.php 'x' execute for everybody
/opt/log4php/file.properties '666' rw for everybody


any thoughts as to what i've screwed up on?

thanks



-----Original Message-----
From: Knut Urdalen [mailto:knut@php.no]
Sent: Friday, January 04, 2008 5:05 PM
To: Log4PHP User
Subject: Re: logging directory...


bruce wrote:
&gt; basically, i'm trying to find a sample, that uses an ini file (not xml) to
&gt; be able to quickly configure the app, so i can do a test php chunk of
script
&gt; to log some test messages...
&gt;
Here's the most basic examples where you control both the name of the
log4php configuration file, the path to the log-file and the format of
each logging event.

file.php:
&lt;?php
define('LOG4PHP_DIR', '/path/to/log4php');
define('LOG4PHP_CONFIGURATION', dirname(__FILE__).'/file.properties');
require_once LOG4PHP_DIR.'/LoggerManager.php';
$logger = LoggerManager::getRootLogger();
$logger-&gt;debug("Hello World!");
?&gt;

file.properties:
log4php.appender.default = LoggerAppenderFile
log4php.appender.default.file = tmp/file.log
log4php.appender.default.layout = LoggerPatternLayout
log4php.appender.default.layout.conversionPattern="%d{Y-m-d H:i:s} %-5p
%c: %m in %F at %L%n"
log4php.rootLogger = DEBUG, default

Regards,
Knut



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: logging directory...</title>
<author><name>&quot;bruce&quot; &lt;bedouglas@earthlink.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c169401c84f4d$d221dd90$0301a8c0@tmesa.com%3e"/>
<id>urn:uuid:%3c169401c84f4d$d221dd90$0301a8c0@tmesa-com%3e</id>
<updated>2008-01-05T03:48:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hi knut...

i tried the following and was unable to generate any output in the test
output file. there is no file in the /var/log dir...


/foo/logtest.php:
#!/usr/bin/php
&lt;?php
define('LOG4PHP_DIR', '/opt/log4php');
define('LOG4PHP_CONFIGURATION', '/opt/log4php/file.properties');
require_once (LOG4PHP_DIR.'/LoggerManager.php');
$logger = LoggerManager::getRootLogger();
$logger-&gt;debug("test!!!");
?&gt;


/opt/log4php/file.properties:
log4php.appender.default = LoggerAppenderFile
log4php.appender.default.file = /var/log/log4php.log
log4php.appender.default.layout = LoggerPatternLayout
log4php.appender.default.layout.conversionPattern="%d{Y-m-d H:i:s} %-5p
%c: %m in %F at %L%n"
log4php.rootLogger = DEBUG, default

/foo/logtest.php 'x' execute for everybody
/opt/log4php/file.properties '666' rw for everybody


any thoughts as to what i've screwed up on?

thanks



-----Original Message-----
From: Knut Urdalen [mailto:knut@php.no]
Sent: Friday, January 04, 2008 5:05 PM
To: Log4PHP User
Subject: Re: logging directory...


bruce wrote:
&gt; basically, i'm trying to find a sample, that uses an ini file (not xml) to
&gt; be able to quickly configure the app, so i can do a test php chunk of
script
&gt; to log some test messages...
&gt;
Here's the most basic examples where you control both the name of the
log4php configuration file, the path to the log-file and the format of
each logging event.

file.php:
&lt;?php
define('LOG4PHP_DIR', '/path/to/log4php');
define('LOG4PHP_CONFIGURATION', dirname(__FILE__).'/file.properties');
require_once LOG4PHP_DIR.'/LoggerManager.php';
$logger = LoggerManager::getRootLogger();
$logger-&gt;debug("Hello World!");
?&gt;

file.properties:
log4php.appender.default = LoggerAppenderFile
log4php.appender.default.file = tmp/file.log
log4php.appender.default.layout = LoggerPatternLayout
log4php.appender.default.layout.conversionPattern="%d{Y-m-d H:i:s} %-5p
%c: %m in %F at %L%n"
log4php.rootLogger = DEBUG, default

Regards,
Knut



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: logging directory...</title>
<author><name>&quot;bruce&quot; &lt;bedouglas@earthlink.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c165901c84f37$aad831f0$0301a8c0@tmesa.com%3e"/>
<id>urn:uuid:%3c165901c84f37$aad831f0$0301a8c0@tmesa-com%3e</id>
<updated>2008-01-05T01:09:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
also...

just what is meant by A1, A2, A3????

thanks again for reading what are surely basic questions..!



-----Original Message-----
From: bruce [mailto:bedouglas@earthlink.net]
Sent: Friday, January 04, 2008 4:57 PM
To: 'Knut Urdalen'; log4php-user@logging.apache.org
Subject: RE: logging directory...


hi again knut..

and thanks or answering/replying to my basic questions...

i've looked at the information/links listed below, and i've tried to figure
out how that relates to the log4php files in the app i downloaded.

basically, i'm trying to find a sample, that uses an ini file (not xml) to
be able to quickly configure the app, so i can do a test php chunk of script
to log some test messages...

i'm pretty sure everything i need is right in front of me if i can grasp it.
i've searchd the 'net trying to see if there's a sample/example test app
that i can examine.

thanks


-----Original Message-----
From: Knut Urdalen [mailto:knut@php.no]
Sent: Friday, January 04, 2008 4:29 PM
To: bruce
Subject: Re: logging directory...


bruce wrote:
&gt; must be missing something, because i can't seem to find/see anything that
&gt; sets the log file/dir...
&gt;
The file-property of the LoggerAppenderFile holds the path to the log
file. See:
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/php/file.p
roperties?view=markup

The layout-property of an appender controls the output format.
LoggerLayoutTTCC is a default one that contains the date/time.

You can also use a LoggerPatternLayout and set the conversionPattern
property to control the exact output. See this example:
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/php/mdc.pr
operties?view=markup

See all the modifiers available in the pattern layout here:
http://incubator.apache.org/log4php/apidocs/log4php/layouts/LoggerPatternLay
out.html

The rest of the API documentation is also helpful:
http://incubator.apache.org/log4php/apidocs/index.html

Best regards,
Knut Urdalen



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: logging directory...</title>
<author><name>Knut Urdalen &lt;knut@php.no&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c477ED7AB.6090503@php.no%3e"/>
<id>urn:uuid:%3c477ED7AB-6090503@php-no%3e</id>
<updated>2008-01-05T01:04:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
bruce wrote:
&gt; basically, i'm trying to find a sample, that uses an ini file (not xml) to
&gt; be able to quickly configure the app, so i can do a test php chunk of script
&gt; to log some test messages...
&gt;   
Here's the most basic examples where you control both the name of the 
log4php configuration file, the path to the log-file and the format of 
each logging event.

file.php:
&lt;?php
define('LOG4PHP_DIR', '/path/to/log4php');
define('LOG4PHP_CONFIGURATION', dirname(__FILE__).'/file.properties');
require_once LOG4PHP_DIR.'/LoggerManager.php';
$logger = LoggerManager::getRootLogger();
$logger-&gt;debug("Hello World!");
?&gt;

file.properties:
log4php.appender.default = LoggerAppenderFile
log4php.appender.default.file = tmp/file.log
log4php.appender.default.layout = LoggerPatternLayout
log4php.appender.default.layout.conversionPattern="%d{Y-m-d H:i:s} %-5p 
%c: %m in %F at %L%n"
log4php.rootLogger = DEBUG, default

Regards,
Knut


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: logging directory...</title>
<author><name>&quot;bruce&quot; &lt;bedouglas@earthlink.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c165801c84f35$dfff7160$0301a8c0@tmesa.com%3e"/>
<id>urn:uuid:%3c165801c84f35$dfff7160$0301a8c0@tmesa-com%3e</id>
<updated>2008-01-05T00:56:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hi again knut..

and thanks or answering/replying to my basic questions...

i've looked at the information/links listed below, and i've tried to figure
out how that relates to the log4php files in the app i downloaded.

basically, i'm trying to find a sample, that uses an ini file (not xml) to
be able to quickly configure the app, so i can do a test php chunk of script
to log some test messages...

i'm pretty sure everything i need is right in front of me if i can grasp it.
i've searchd the 'net trying to see if there's a sample/example test app
that i can examine.

thanks


-----Original Message-----
From: Knut Urdalen [mailto:knut@php.no]
Sent: Friday, January 04, 2008 4:29 PM
To: bruce
Subject: Re: logging directory...


bruce wrote:
&gt; must be missing something, because i can't seem to find/see anything that
&gt; sets the log file/dir...
&gt;
The file-property of the LoggerAppenderFile holds the path to the log
file. See:
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/php/file.p
roperties?view=markup

The layout-property of an appender controls the output format.
LoggerLayoutTTCC is a default one that contains the date/time.

You can also use a LoggerPatternLayout and set the conversionPattern
property to control the exact output. See this example:
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/php/mdc.pr
operties?view=markup

See all the modifiers available in the pattern layout here:
http://incubator.apache.org/log4php/apidocs/log4php/layouts/LoggerPatternLay
out.html

The rest of the API documentation is also helpful:
http://incubator.apache.org/log4php/apidocs/index.html

Best regards,
Knut Urdalen



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: logging directory...</title>
<author><name>&quot;bruce&quot; &lt;bedouglas@earthlink.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c164b01c84f31$733d7b20$0301a8c0@tmesa.com%3e"/>
<id>urn:uuid:%3c164b01c84f31$733d7b20$0301a8c0@tmesa-com%3e</id>
<updated>2008-01-05T00:25:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hi knut..

i've been looking at the examples from the log4php app, as well as the link
you pointed me to..

must be missing something, because i can't seem to find/see anything that
sets the log file/dir...

what's the file that sets these vars...

thanks



-----Original Message-----
From: Knut Urdalen [mailto:knut@php.no]
Sent: Friday, January 04, 2008 3:15 PM
To: Log4PHP User
Subject: Re: logging directory...


bruce wrote:
&gt; how can i:
&gt;  -set the logging file/dir?
&gt;  -add a date/time to each line that's written to the log file?
&gt;
Hi Bruce,

Take a look at the current examples in trunk.

http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/php/

I'm sure you'll figure it out :)

Best regards,
Knut Urdalen



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: logging directory...</title>
<author><name>Knut Urdalen &lt;knut@php.no&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c477EBDEE.8080507@php.no%3e"/>
<id>urn:uuid:%3c477EBDEE-8080507@php-no%3e</id>
<updated>2008-01-04T23:14:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
bruce wrote:
&gt; how can i:
&gt;  -set the logging file/dir?
&gt;  -add a date/time to each line that's written to the log file?
&gt;   
Hi Bruce,

Take a look at the current examples in trunk.

http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/php/

I'm sure you'll figure it out :)

Best regards,
Knut Urdalen



</pre>
</div>
</content>
</entry>
<entry>
<title>logging directory...</title>
<author><name>&quot;bruce&quot; &lt;bedouglas@earthlink.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c163601c84f24$900283c0$0301a8c0@tmesa.com%3e"/>
<id>urn:uuid:%3c163601c84f24$900283c0$0301a8c0@tmesa-com%3e</id>
<updated>2008-01-04T22:53:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hi...

new to log4php.. looking through various sites, and trying to figure out how
to configure the log4php app.

how can i:
 -set the logging file/dir?
 -add a date/time to each line that's written to the log file?

these are just a ew of my questions.. but if i can get these, i can probably
figure out the rest.

thanks



</pre>
</div>
</content>
</entry>
<entry>
<title>test</title>
<author><name>&quot;bruce&quot; &lt;bedouglas@earthlink.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200801.mbox/%3c163501c84f23$bc83c0e0$0301a8c0@tmesa.com%3e"/>
<id>urn:uuid:%3c163501c84f23$bc83c0e0$0301a8c0@tmesa-com%3e</id>
<updated>2008-01-04T22:47:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
test


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Recommended usage for OO</title>
<author><name>&quot;Ondra Medek&quot; &lt;xmedeko@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4php-user/200707.mbox/%3c224115660707231410x9b07624qe4dc141959c17615@mail.gmail.com%3e"/>
<id>urn:uuid:%3c224115660707231410x9b07624qe4dc141959c17615@mail-gmail-com%3e</id>
<updated>2007-07-23T21:10:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
interesting,
thanks

On 7/24/07, Marco V. &lt;marco@apache.org&gt; wrote:
&gt;
&gt; &gt;
&gt; &gt; As far as I remember in Java, most of the people initialize Log4J like:
&gt; &gt; public class MyClass {
&gt; &gt;   static Logger logger = Logger.getLogger(MyClass.class);
&gt; &gt; }
&gt; &gt; but it is not possible in PHP.
&gt; &gt;
&gt;
&gt; Yes, You can.
&gt;
&gt; &lt;?php
&gt; class A {
&gt;
&gt;     public static $logger;
&gt;
&gt; }
&gt;
&gt; A::$logger = LoggerManager::getLogger('A');
&gt; ?&gt;
&gt;
&gt; Regards,
&gt; -Marco
&gt;


-- 
Ondra Medek


</pre>
</div>
</content>
</entry>
</feed>
