承接 subhh/vufind-solrprobe 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

subhh/vufind-solrprobe

Composer 安装命令:

composer require subhh/vufind-solrprobe

包简介

VuFindSearch listener that collects information about the interaction with the search server

README 文档

README

SolrProbe is copyright (c) 2022,2023 by Staats- und Universitätsbibliothek Hamburg and released under the terms of the GNU General Public License v3.

Description

SolrProbe hooks into VuFind's search system and collects information about the interaction with the search server. It gathers the following information:

  • Backend identifier
  • Name of the search command class
  • Session identifier
  • Request identifier
  • Time when the `.pre` event triggered
  • Time when the `.postor.error` event triggered
  • Solr query time if available
  • Request status ("OK" or the exception class name)
  • Request status code ("200" or the exception code)
  • VuFind URL that triggered to interaction

Usage

Attach the SolrProbe to the shared event manager during the Laminas MVC `bootstrap` event.

class Module {

    ...

    public function onBootStrap (MvcEvent $event) : void
    {
        $filename = sprintf('probe.log.%s', date('Y-m-d'));
        $logfile = fopen(__DIR__ . '/log/' . $filename, 'a');
        if ($logfile !== false) {
            $services = $event->getApplication()->getServiceManager();
            $events = $services->get('SharedEventManager');
            $handler = new SUBHH\VuFind\SolrProbe\LogfileHandler($logfile);
            $probe = new SUBHH\VuFind\SolrProbe\SolrProbe($handler);
            $probe->attach($events);
            register_shutdown_function([$probe, 'onEngineShutdown']);
    }

    ...
}

Authors

David Maus <david.maus@sub.uni-hamburg.de>

统计信息

  • 总下载量: 703
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2022-12-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固