[dev] Golem logger

Jan Schneider jan at horde.org
Mon May 14 14:02:10 UTC 2007


Zitat von Ben Klang <ben at alkaloid.net>:

> On Monday 14 May 2007 03:06:16 am Duck wrote:
>> The recent update of Gollem.php Version 1.208 makes Gollem unusable, if
>> logging ins disabled. (The result fo Horde::getLogger is false)
>>
> After grepping through the Horde (and a few modules') sources, I can  
> only find
> one good example of getLogger(), which is the one I used to model the commit
> to Gollem.  Further the phpdoc on getLogger() is missing.
>
> I can modify gollem/lib/Gollem.php to check for a return type === false.  Is
> that typically how Horde signifies logging being disabled?  I would like to
> distinguish between disabled logging and an error instantiating the logging.

Why don't you look at how getLogger() is implemented? It raises a  
fatal error if something with the configuration is wrong. If logging  
is disabled or something goes wrong in the Log factory, the result is  
empty (false or null).

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list