public function logReference($type, $ref, $oldRef = null, $method = null, $line = null)
    {
        if (self::getConfig('log', 'reference') || self::getConfig('log', $type . 'Ref')) {
            switch ($type) {
                case 'replace':
                    $this->logMessage('REPLACE REF', 'Replacing Reference From "' . $oldRef . '" to "' . $ref . '"', $method, $line);
                    break;
                case 'load':
                    $this->logMessage('LOAD REF', 'Loading Reference : "' . $ref . '"', $method, $line);
                    break;
                case 'register':
                    $this->logMessage('REGISTER REF', 'Registier Reference Definition : "' . $ref . '"', $method, $line);
                    break;
                case 'drop':
                    $this->logMessage('DROP REF', 'Drop Reference : "' . $ref . '"', $method, $line);
                    break;
            }
        }
    }