API:EPrints/Apache/LogHandler
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
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
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
handler
handler REQUEST
Called by mod_perl whenever a request is made to the web server where REQUEST is an Apache Request object.
uri_to_eprintid
$id = EPrints::Apache::LogHandler::uri_to_eprintid( $session, $uri )
Returns the eprint id that $uri corresponds to, or undef.
uri_to_docid
$id = EPrints::Apache::LogHandler::uri_to_docid( $session, $eprintid, $uri )
Returns the docid that $uri corresponds to (given the $eprintid), or undef.
SEE ALSO