Dear DSpace Community,

After studying the code, it seemed to me the xoai engine will not leave any
log.info even if it is receiving request, hence there will not be any
statistics reported in logs.

I have been trying to add log.info(LogManager.getHeader(context,
"oai_request") in the DSpaceOAIDataProvider.java but receives following
error while building thru maven:
[INFO] Compilation failure
/usr/local/dspace-3.2-src-release/dspace-oai/src/main/java/org/dspace/xoai/DSpaceOAIDataProvider.java:[141,24]
cannot find symbol
symbol  : method getHeader(org.dspace.core.Context,java.lang.String)
location: class org.apache.log4j.LogManager

I can see there are other java files using the same method to do the
log.info thing - are there any hints for fixing the issue?

Thanks,
Alexander Wong


On Fri, Jun 6, 2014 at 2:42 PM, Alexander Wong <amd...@gmail.com> wrote:

> Dear DSpace Community,
>
> After studying the code, it seemed to me the xoai engine will not leave
> any log.info even if it is receiving request, hence there will not be any
> statistics reported in logs.
>
> I have been trying to add log.info(LogManager.getHeader(context,
> "oai_request") in the DSpaceOAIDataProvider.java but receives following
> error while building thru maven:
> [INFO] Compilation failure
> /usr/local/dspace-3.2-src-release/dspace-oai/src/main/java/org/dspace/xoai/DSpaceOAIDataProvider.java:[141,24]
> cannot find symbol
> symbol  : method getHeader(org.dspace.core.Context,java.lang.String)
> location: class org.apache.log4j.LogManager
>
> I can see there are other java files using the same method to do the
> log.info thing - are there any hints for fixing the issue?
>
> Thanks,
> Alexander Wong
>
>
> On Thu, Jun 5, 2014 at 4:23 PM, Alexander Wong <amd...@gmail.com> wrote:
>
>> Hi Hilton,
>>
>> Thanks for your response. I can say that I have old OAI Request stats
>> intact in the reports, thus I believed it is not a retrospective issue.
>> (yet they are all imported to SOLR for future upgrades).
>>
>> Might I know if I need to do anything in dstat.cfg or log4j.properties
>> (or java files) to make DSpace take logs on OAI?
>>
>> Thanks,
>> Alexander Wong.
>>
>>
>>
>> On Thu, Jun 5, 2014 at 3:36 PM, Hilton Gibson <hilton.gib...@gmail.com>
>> wrote:
>>
>>> Hi Alexander
>>>
>>> I think you might have to convert the old stats.
>>> See:
>>> http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Statistics/Old_Versions
>>>
>>> Cheers
>>>
>>> hg
>>>
>>> *Hilton Gibson*
>>> Ubuntu Linux Systems Administrator
>>> JS Gericke Library
>>> Room 1025D
>>> Stellenbosch University
>>> Private Bag X5036
>>> Stellenbosch
>>> 7599
>>> South Africa
>>>
>>> Tel: +27 21 808 4100 | Cell: +27 84 646 4758
>>> http://scholar.sun.ac.za
>>> http://bit.ly/goodir
>>> http://library.sun.ac.za
>>> http://za.linkedin.com/in/hiltongibson
>>>
>>>
>>> On 5 June 2014 06:35, Alexander Wong <amd...@gmail.com> wrote:
>>>
>>>>  Dear DSpace Community,
>>>>
>>>> I have been encountering a lot of stats issues after upgrading from
>>>> DSpace 1.5 to 3.2.
>>>> We have switched to OAI Server 2.0 in May and I have just found out
>>>> that the stats for OAI Server 2.0 were reported as 0 in monthly report.
>>>>
>>>> I have done a few OAI Requests in the month and therefore the number
>>>> shall not be zero.
>>>>
>>>> Do I need to configure anything to let the number report correctly?
>>>>
>>>> Thanks.
>>>> Alexander Wong.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their
>>>> applications. Written by three acclaimed leaders in the field,
>>>> this first edition is now available. Download your free book today!
>>>> http://p.sf.net/sfu/NeoTech
>>>> _______________________________________________
>>>> DSpace-tech mailing list
>>>> DSpace-tech@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>>> List Etiquette:
>>>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>>>
>>>
>>>
>>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to