"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/monolog/monolog/src/Monolog/Logger.php" between
phplist-3.4.9.tgz and phplist-3.5.0.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

Logger.php  (phplist-3.4.9.tgz):Logger.php  (phplist-3.5.0.tgz)
skipping to change at line 530 skipping to change at line 530
} }
/** /**
* Converts PSR-3 levels to Monolog ones if necessary * Converts PSR-3 levels to Monolog ones if necessary
* *
* @param string|int Level number (monolog) or name (PSR-3) * @param string|int Level number (monolog) or name (PSR-3)
* @return int * @return int
*/ */
public static function toMonologLevel($level) public static function toMonologLevel($level)
{ {
if (is_string($level) && defined(__CLASS__.'::'.strtoupper($level))) { if (is_string($level)) {
return constant(__CLASS__.'::'.strtoupper($level)); // Contains chars of all log levels and avoids using strtoupper() wh
ich may have
// strange results depending on locale (for example, "i" will become
"İ")
$upper = strtr($level, 'abcdefgilmnortuwy', 'ABCDEFGILMNORTUWY');
if (defined(__CLASS__.'::'.$upper)) {
return constant(__CLASS__ . '::' . $upper);
}
} }
return $level; return $level;
} }
/** /**
* Checks whether the Logger has a handler that listens on the given level * Checks whether the Logger has a handler that listens on the given level
* *
* @param int $level * @param int $level
* @return bool * @return bool
 End of changes. 1 change blocks. 
2 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)