<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Horde::logMessage calls Horde_Log_Logger::log bad values</title> 
  <pubDate>Fri, 10 Apr 2026 02:41:23 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8937</link> 
  <atom:link rel="self" type="application/rss+xml" title="Horde::logMessage calls Horde_Log_Logger::log bad values" href="https://bugs.horde.org/ticket/8937/rss" /> 
  <description>Horde::logMessage calls Horde_Log_Logger::log bad values</description> 
 
   
   
  <item> 
   <title>Trying to install Horde4 from current GIT kept giving me &quot;Ba</title> 
   <description>Trying to install Horde4 from current GIT kept giving me &quot;Bad log level&quot; error pages until I tracked down the problem in the Horde class in &quot;framework/Core/lib/Horde.php&quot; where the logMessage method was passing Horde_Log_Logger::log a $priority string instead of the integer $level it
expected.</description> 
   <pubDate>Sat, 27 Mar 2010 00:44:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8937#t58323</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8937: C</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8937: Convert priority to integer; don&#039;t exit prematurely

http://git.horde.org/diff.php/framework/Core/lib/Horde/Core/Log/Logger.php?rt=horde-git&amp;r1=b24b186ef95eec69c770bf491edef85fcb12c5f0&amp;r2=a4a808da9446fd1d5ef4a35095df6e045794aaf8</description> 
   <pubDate>Sat, 27 Mar 2010 01:54:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8937#t58324</link> 
  </item> 
   
  <item> 
   <title>No - it is perfectly acceptable to pass a string to the logg</title> 
   <description>No - it is perfectly acceptable to pass a string to the logger.  Horde_Core_Log_Logger should do the conversion.  However, there was a certain case where this conversion wasn&#039;t happening and that has been fix.  Additionally, this same case was exiting the entire script, which wasn&#039;t necessary.

See if these changes fix things for you.</description> 
   <pubDate>Sat, 27 Mar 2010 01:55:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8937#t58326</link> 
  </item> 
   
  <item> 
   <title>&gt; No - it is perfectly acceptable to pass a string to the lo</title> 
   <description>&gt; No - it is perfectly acceptable to pass a string to the logger.  
&gt; Horde_Core_Log_Logger should do the conversion.  However, there was a 
&gt; certain case where this conversion wasn&#039;t happening and that has been 
&gt; fix.  Additionally, this same case was exiting the entire script, 
&gt; which wasn&#039;t necessary.

Well, Horde::logMessage calls Horde_Log_Logger::log not Horde_Core_Log_Logger::log, despite the comment&#039;s reference to the latter. Horde_Core_Log_Logger extends Horde_Log_Logger, changing the behavior of the log method. I&#039;m not sure exactly how this should be fixed, but the inconsistency between those two log methods seems unnecessarily confusing.</description> 
   <pubDate>Sat, 27 Mar 2010 02:06:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8937#t58327</link> 
  </item> 
   
  <item> 
   <title>&gt; Well, Horde::logMessage calls Horde_Log_Logger::log not 
</title> 
   <description>&gt; Well, Horde::logMessage calls Horde_Log_Logger::log not 
&gt; Horde_Core_Log_Logger::log, despite the comment&#039;s reference to the 
&gt; latter.

This is incorrect.  Horde::logMessage() calls the injector and asks for the instance bound to &#039;Horde_Log_Logger&#039;.  This binder (Horde_Core_Binder_Logger) returns a Horde_Core_Log_Logger instance (see Core/lib/Horde/Core/Binder/Logger.php).

The injector pattern is necessary to ensure that the Horde_Log package is not dependent on any given Horde installation - in other words, Horde_Log can be used independently of Horde the application.

Horde_Log requires an integer input for log() - mainly because this maps with other logger API interfaces.  However, using Horde_Log integer logging constants is troubling in Horde since the log level is defined in a configuration file, which may be loaded before Horde_Log itself is available.  Thus, the need to allow strings to be used for log levels within Horde.</description> 
   <pubDate>Mon, 29 Mar 2010 20:53:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8937#t58333</link> 
  </item> 
   
  <item> 
   <title>OK, thanks; &lt;URL:http://git.horde.org/diff.php/framework/Cor</title> 
   <description>OK, thanks; &lt;URL:http://git.horde.org/diff.php/framework/Core/lib/Horde/Core/Log/Logger.php?rt=horde-git&amp;r1=b24b186ef95eec69c770bf491edef85fcb12c5f0&amp;r2=a4a808da9446fd1d5ef4a35095df6e045794aaf8&gt; does seem to fix it for me.</description> 
   <pubDate>Tue, 30 Mar 2010 06:30:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8937#t58335</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
