API:EPrints/Apache/LogHandler
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
NAME
EPrints::Apache::LogHandler - Main handler for Apache log events
CONFIGURATION
To enable the Apache::LogHandler add to your ArchiveConfig:
$c->{loghandler}->{enable} = 1;
DATA FORMAT
requester
The requester is stored using their IP in URN format: urn:ip:x.x.x.x.
serviceType
ServiceType is in format info:ofi/fmt:kev:mtx:sch_svc.
The value is encoded as ?name=yes (where name is one of the services defined).
referent, referringEntity
These are stored in URN format: info:oai:repositoryid:eprintid.
referent_docid
The document id as a fragment of the referent: #docid.
METHODS
eprints_apache_loghandler_handler
EPrints:Apache::LogHandler::handler
Empty (as deprecated) handler method.
is_robot
EPrints:Apache::LogHandler::is_robot( $r, $ip )
Test if request $r is a robot based on User-Agent or if $ip is listed as a robot.
Returns boolean dependent or whether request has determined to be a robot.
document
$handler->document( $r )
A request on a document.
eprint
$handler->eprint( $r )
A request on an eprint abstract page.
SEE ALSO
COPYRIGHT
© Copyright 2000-2024 University of Southampton.
EPrints 3.4 is supplied by EPrints Services.
http://www.eprints.org/eprints-3.4/
LICENSE
This file is part of EPrints 3.4 http://www.eprints.org/.
EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.
EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.