public function getLogger($namespace = '', $class = '', $method = '')
    {
        // Remove any potential namespace from the class and method names.
        $class = substr($class, strrpos('\\' . $class, '\\'));
        $method = substr($method, strrpos('\\' . $method, '\\'));

        // If __METHOD__ was used instead of __FUNCTION__, it also contains
        // the class name as a prefix. We get rid of that too.
        $method = substr((string) $method, strrpos(':' . $method, ':'));

        return $this["$method:$class:$namespace"];
    }