Example #1
0
 /**
  *
  * @param array $options 
  * @return Log The new Log instance.
  */
 public static function configure(array $options)
 {
     if (is_null($options)) {
         throw new OSM_Exception('Invalid call of ' . __METHOD__);
     }
     foreach ($options as $k => $v) {
         if (!array_key_exists($k, self::$_options)) {
             throw new OSM_Exception('Unknow Log option "' . $k . '"');
         }
         self::$_options[$k] = $v;
     }
     self::$_log = null;
     self::_getLog();
 }