Re: Convert to array from XML

2012-05-15 Thread Florian Semm
Am 15.05.2012 19:34, schrieb Michael Sole: We are using log4php quite extensively in our application. We began by using the XML config file but found that too much of a hassle as we end up with lots of them. The array method of configuring loggers seems much more efficient but I am having dif

RE: Convert to array from XML

2012-05-15 Thread Michael Sole
Again, my apologies, I had the include in a file and forgot. It is, in fact, not autoloading. As for the path, I installed it using pear install Apapche_log4php. It puts it into this location: include '/usr/share/php/log4php/Logger.php'; And again, sorry for the confusion. -Original Messag

RE: Convert to array from XML

2012-05-15 Thread Michael Sole
Christian, Miraculously it started working. I think I had to kill off all the php fcgi processes. I did restart apache but I guess a few processes needed to die. Mike -Original Message- From: Christian Grobmeier [mailto:grobme...@gmail.com] Sent: Tuesday, May 15, 2012 2:17 PM To: Log4P

Re: Convert to array from XML

2012-05-15 Thread Christian Grobmeier
On Tue, May 15, 2012 at 8:11 PM, Michael Sole wrote: > Christian, > > As I mentioned before I switched from using the log4php as a subfolder to > having it be a pear extension but I am getting a class not found unless I > purposefully include that path in my script. Should it load automatically?

RE: Convert to array from XML

2012-05-15 Thread Michael Sole
Christian, As I mentioned before I switched from using the log4php as a subfolder to having it be a pear extension but I am getting a class not found unless I purposefully include that path in my script. Should it load automatically? Mike -Original Message- From: Christian Grobmeier [m

RE: Convert to array from XML

2012-05-15 Thread Michael Sole
Thanks, I didn't see that first example. It appears to be helpful. I tried to xml converter and found 2 problems, 1 it didn't work with the auto loader (I installed as a pear plugin) and 2 it didn't appear to get all the settings from the XML. Here is the output from the XML below: Array (

Re: Convert to array from XML

2012-05-15 Thread Christian Grobmeier
On Tue, May 15, 2012 at 7:34 PM, Michael Sole wrote: > We are using log4php quite extensively in our application. We began by using > the XML config file but found that too much of a hassle as we end up with > lots of them. The array method of configuring loggers seems much more > efficient but I

Convert to array from XML

2012-05-15 Thread Michael Sole
We are using log4php quite extensively in our application. We began by using the XML config file but found that too much of a hassle as we end up with lots of them. The array method of configuring loggers seems much more efficient but I am having difficulty converting our xml file to the array.