/** * Set a logger object, defaulting to mad_default_logger. This needs to * reset connection so that the correct log is passed to the connection * adapter. * * @param object $logger */ public static function setLogger($logger = null) { self::$_logger = isset($logger) ? $logger : $GLOBALS['MAD_DEFAULT_LOGGER']; self::establishConnection(self::removeConnection()); }