8 * Message logging class
11 * @author Stephen Clay <steve@mrclay.org>
13 * @todo lose this singleton! pass log object in Minify::serve and distribute to others
20 * The object should have a method "log" that accepts a value as 1st argument and
21 * an optional string label as the 2nd.
23 * @param mixed $obj or a "falsey" value to disable
26 public static function setLogger($obj = null) {
33 * Pass a message to the logger (if set)
35 * @param string $msg message to log
38 public static function log($msg, $label = 'Minify') {
39 if (! self::$_logger) return;
40 self::$_logger->log($msg, $label);
44 * @var mixed logger object (like FirePHP) or null (i.e. no logger available)
46 private static $_logger = null;