/**
  * Send message to the Minify logger
  * @param string $msg
  * @return null
  */
 protected function log($msg)
 {
     #require_once 'Diglin/Minify/Logger.php';
     Diglin_Minify_Logger::log($msg);
 }
 /**
  * On IIS, create $_SERVER['DOCUMENT_ROOT']
  * 
  * @param bool $unsetPathInfo (default false) if true, $_SERVER['PATH_INFO']
  * will be unset (it is inconsistent with Apache's setting)
  * 
  * @return null
  */
 public static function setDocRoot($unsetPathInfo = false)
 {
     if (isset($_SERVER['SERVER_SOFTWARE']) && 0 === strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/')) {
         $_SERVER['DOCUMENT_ROOT'] = rtrim(substr($_SERVER['PATH_TRANSLATED'], 0, strlen($_SERVER['PATH_TRANSLATED']) - strlen($_SERVER['SCRIPT_NAME'])), '\\');
         if ($unsetPathInfo) {
             unset($_SERVER['PATH_INFO']);
         }
         #require_once 'Minify/Logger.php';
         Diglin_Minify_Logger::log("setDocRoot() set DOCUMENT_ROOT to \"{$_SERVER['DOCUMENT_ROOT']}\"");
     }
 }
 /**
  * Set logger object. 
  *
  * The object should have a method "log" that accepts a value as 1st argument and
  * an optional string label as the 2nd.
  *
  * @param mixed $obj or a "falsey" value to disable
  * @return null
  */
 public static function setLogger($obj = null)
 {
     self::$_logger = $obj ? $obj : null;
 }