RE: Moving log4php to git

2012-11-12 Thread Michael Sole
: Monday, November 12, 2012 8:45 AM To: Log4PHP User Subject: Re: Moving log4php to git On Mon, Nov 12, 2012 at 2:36 PM, Michael Sole wrote: > Yes I am aware, my point is that it would be counter intuitive. People would > expect svn use and while git it is the new golden child it doesn&#x

RE: Moving log4php to git

2012-11-12 Thread Michael Sole
yet but I do use svn as my repo. -Original Message- From: Christian Grobmeier [mailto:grobme...@gmail.com] Sent: Monday, November 12, 2012 8:34 AM To: Log4PHP User Subject: Re: Moving log4php to git On Mon, Nov 12, 2012 at 2:32 PM, Michael Sole wrote: > And isn't log4php? It do

RE: Moving log4php to git

2012-11-12 Thread Michael Sole
And isn't log4php? -Original Message- From: Ivan Habunek [mailto:ivan.habu...@gmail.com] Sent: Saturday, November 10, 2012 10:50 AM To: Log4PHP User Subject: Re: Moving log4php to git On 10 November 2012 16:47, Michael Sole wrote: > Isn't subversion an apache projec

Re: Moving log4php to git

2012-11-10 Thread Michael Sole
Isn't subversion an apache project? Sent from my iPhone On Nov 10, 2012, at 6:56 AM, "Florian Semm" wrote: > Am 09.11.2012 09:48, schrieb Ivan Habunek: >> Hi all, >> >> I have submitted a ticket to move log4php to git. I believe this might >> be a step in the right direction for attracting mor

RE: How to dynamically change the file name of log file

2012-08-01 Thread Michael Sole
change the log file? Pardon me if this is a silly question, but i am a noob, both in php & the logger. Thanks, Kavin On Tue, Jul 31, 2012 at 12:31 PM, Michael Sole mailto:ms...@gold-mobile.com>> wrote: This is what I am using now: //Logging config $logConfig = array(

RE: How to dynamically change the file name of log file

2012-07-31 Thread Michael Sole
m: Kavin Mehta [mailto:kavinme...@gmail.com] Sent: Tuesday, July 31, 2012 1:03 PM To: Log4PHP User Subject: Re: How to dynamically change the file name of log file Thanks Mike. Appreciate the quick response. Can you give me an example? Thanks, Kavin Mehta. On Tue, Jul 31, 2012 at 6:13 AM, Michael

RE: How to dynamically change the file name of log file

2012-07-31 Thread Michael Sole
Kavin, If you use the array config method you can set the file dynamically. This is what I am doing. Mike From: Kavin Mehta [mailto:kavinme...@gmail.com] Sent: Monday, July 30, 2012 7:45 PM To: log4php-user@logging.apache.org Subject: How to dynamically change the file name of log file Hi, I

RE: Can't pass object by reference and then fork a process

2012-05-17 Thread Michael Sole
Sorry this was a false positive. The problem lies elsewhere. Please ignore this request. From: Michael Sole Sent: Thursday, May 17, 2012 12:12 PM To: 'log4php-user@logging.apache.org' Subject: Can't pass object by reference and then fork a process I am defining an instance of

Can't pass object by reference and then fork a process

2012-05-17 Thread Michael Sole
I am defining an instance of a logger in the main config and then passing that by reference to the constructor in a class. This works except for my daemon scripts where it cause the loose its MySQL connection. I am not sure how to fix this. I am using the System_Daemon pear plugin which is a wra

RE: Convert to array from XML

2012-05-16 Thread Michael Sole
From: Christian Grobmeier [mailto:grobme...@gmail.com] Sent: Wednesday, May 16, 2012 2:21 PM To: Log4PHP User Subject: Re: Convert to array from XML On Wed, May 16, 2012 at 8:15 PM, Michael Sole wrote: > I would love to be able to write new semantics for configs or at least > propose them

RE: Convert to array from XML

2012-05-16 Thread Michael Sole
, May 16, 2012 1:57 PM To: Log4PHP User Subject: Re: Convert to array from XML Hello Michael, On Wed, May 16, 2012 at 7:46 PM, Michael Sole wrote: > Thanks! > > Not sure why this isn’t better documented. If multiple arrays didn’t > make my eyes bleed I would offer to doc this bet

RE: Convert to array from XML

2012-05-16 Thread Michael Sole
alue', 'param2'=>'value')); Or something like that, we don't need to completely mimic XML, I think From: Florian Semm [mailto:florian.s...@gmx.de] Sent: Wednesday, May 16, 2012 1:23 AM To: Log4PHP User Subject: Re: Convert to array from XML Am 15.05.2012

RE: Convert to array from XML

2012-05-15 Thread Michael Sole
--Original Message- From: Christian Grobmeier [mailto:grobme...@gmail.com] Sent: Tuesday, May 15, 2012 2:17 PM To: Log4PHP User Subject: Re: Convert to array from XML On Tue, May 15, 2012 at 8:11 PM, Michael Sole wrote: > Christian, > > As I mentioned before I switched from using the log

RE: Convert to array from XML

2012-05-15 Thread Michael Sole
: Log4PHP User Subject: Re: Convert to array from XML 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 > purposeful

RE: Convert to array from XML

2012-05-15 Thread Michael Sole
[mailto:grobme...@gmail.com] Sent: Tuesday, May 15, 2012 1:51 PM To: Log4PHP User Subject: Re: Convert to array from XML 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 th

RE: Convert to array from XML

2012-05-15 Thread Michael Sole
( [0] => myAppender ) ) ) -Original Message- From: Christian Grobmeier [mailto:grobme...@gmail.com] Sent: Tuesday, May 15, 2012 1:51 PM To: Log4PHP User Subject: Re: Convert to array from XML On Tue, May 15, 2012 at 7:34 PM, Michael Sole wrote: > We are using log4php quite e

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.

Can't find autoload

2011-09-08 Thread Michael Sole
We have moved the new version of our application from develop to our QA servers. We are now getting this error: Warning: log4php: It looks like your code is using an __autoload() function. log4php uses spl_autoload_register() which will bypass your __autoload() function and may break autoloadin

RE: Can not access object from extended class

2011-09-02 Thread Michael Sole
? Thanks, Mike -Original Message- From: Ivan Habunek [mailto:ivan.habu...@gmail.com] Sent: Thursday, September 01, 2011 2:29 AM To: Log4PHP User Subject: Re: Can not access object from extended class On 31.8.2011. 19:09, Michael Sole wrote: > Actually this is how I have it: >

RE: Can not access object from extended class

2011-08-31 Thread Michael Sole
mailto:ivan.habu...@gmail.com] Sent: Wednesday, August 31, 2011 12:54 PM To: Log4PHP User Subject: Re: Can not access object from extended class On 31.8.2011. 18:46, Michael Sole wrote: > I have an application that uses a base Database class and then each > class extends that. This gives easy

Can not access object from extended class

2011-08-31 Thread Michael Sole
I have an application that uses a base Database class and then each class extends that. This gives easy database access to all the classes and insures that proper logging is maintain by all my developers. If I create a new instance of the database class directly the logging works fine, when I c

RE: LoggerAppenderRollingFile, missing feature or documenation bug?

2011-08-30 Thread Michael Sole
This would be cool. I think the datePattern is for the date inside the log file itself. -Original Message- From: Janne H [mailto:jannehso...@yahoo.com] Sent: Tuesday, August 23, 2011 3:51 AM To: log4php-user@logging.apache.org Subject: LoggerAppenderRollingFile, missing feature or docume

RE: Multiple servers writing to the same file

2011-08-17 Thread Michael Sole
t have the same bug. I may install gentoo to try and figure this out if I have the time. Too bad PHP is not included on their live CD. Do you know any good quickstart tutorials? :-) Regards, Ivan On 17 August 2011 13:44, Michael Sole wrote: > The array is empty: array(0) { } > > --

RE: Multiple servers writing to the same file

2011-08-17 Thread Michael Sole
t;:protected]=>     string(10) "myAppender"     ["threshold":protected]=>     NULL     ["requiresLayout":protected]=>     bool(true)   } } If not, then the file appender is not being creted at all, and we will have to debug the configurator... Regards, Ivan

RE: Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
same file Possible. Can you run "php -m" and see whether you have the libxml extension loaded? I think that is the only prerrequisite... Ivan On 16 August 2011 20:46, Michael Sole wrote: I think the failure is happening before that point. I doubt the function is even being called. Ev

RE: Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
is returned by flock() in line 111. If flock fails, then the appender will stop logging without reporting an error. Unfortunately, there's still a lot of potential silent failures in log4php source. We're working on improving error reporting. Regards, Ivan On 16.8.2011. 20:21, Michael Sole

RE: Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
tial silent failures in log4php source. We're working on improving error reporting. Regards, Ivan On 16.8.2011. 20:21, Michael Sole wrote: > Yeah I was already trying that: > value="/vdomain/logtest.goldmobile.mobi/html/myLog.log" /> > > > But no dice, its gent

RE: Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
ender will stop logging without reporting an error. Unfortunately, there's still a lot of potential silent failures in log4php source. We're working on improving error reporting. Regards, Ivan On 16.8.2011. 20:21, Michael Sole wrote: > Yeah I was already trying that: > value="/

RE: Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
writing to the same file That's strange. I just tried it (windows) and it works fine. Try specifying the full file path, just in case. Something like: Regards, Ivan On 16.8.2011. 20:15, Michael Sole wrote: > Thanks. > > I made the correction but still no luck. The file would be made

RE: Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
] Sent: Tuesday, August 16, 2011 2:20 PM To: Log4PHP User Subject: Re: Multiple servers writing to the same file That's strange. I just tried it (windows) and it works fine. Try specifying the full file path, just in case. Something like: Regards, Ivan On 16.8.2011. 20:15, Michael Sole

RE: Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
...@gmail.com] Sent: Tuesday, August 16, 2011 2:13 PM To: Log4PHP User Subject: Re: Multiple servers writing to the same file No, that's fine. You don't need any PHP extensions to log to files, and it works with the default PHP config. Regards, Ivan On 16.8.2011. 20:05, Michael

RE: Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
local disk and this works ok. Let us know if you run into any problems. Regards, Ivan On 16 August 2011 15:26, Michael Sole wrote: If I were to have a NAS and mount a folder on 2 different servers to a folder on the NAS could I use log4php to write to the same file from both servers? The

RE: Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
n On 16 August 2011 15:26, Michael Sole wrote: If I were to have a NAS and mount a folder on 2 different servers to a folder on the NAS could I use log4php to write to the same file from both servers? The goal is to have 1 log file from 2 servers in a load balanced array. ___

Multiple servers writing to the same file

2011-08-16 Thread Michael Sole
If I were to have a NAS and mount a folder on 2 different servers to a folder on the NAS could I use log4php to write to the same file from both servers? The goal is to have 1 log file from 2 servers in a load balanced array. ___ Michael F. Sole ms...@gold-mobile.com Office: 7