Hello Paul,

the log directory is configured in the dspace.cfg file as
log.dir.

Configuration parameters can be retrieved by the get methods in 
org.dspace.core.ConfigurationManager. There are various methods for 
string, int, boolean parameters with or without defaults.

So you got to import org.dspace.core.ConfigurationManager if not already 
used.
In a jsp this would be:

<%@ page import="org.dspace.core.ConfigurationManager"%>

and then you can use
<%
        String logdir = ConfigurationManager.getProperty("log.dir");
%>
to retrieve the log directory parameter.

Hope that helps

Claudia Jürgen


Am 21.07.2010 16:09, schrieb Brindley, Paul:
> I'm new to development using DSpace and JSP but I'm working on a small
> modification to allow an administrator to remotely view the DSpace log
> files.  I've got most of the functionality working now, however so far
> I've hard coded the path to the log directory as "C:\DSpace\log\".  How
> does jspui store the information of where DSpace is located on the hard
> drive?   I would like the viewer to work even if the DSpace installation
> is in a different directory.
>
>
>
>
> Thank you in advance,
>
>
>
> - Paul Brindley
>
> ***********************************************************************
> Visit the National Library of Scotland online at www.nls.uk
> ***********************************************************************
> Please consider the environment before printing this e-mail.
>
> This communication is intended for the addressee(s) only. If you
> are not the intended recipient, please notify the Information Services 
> Helpdesk on +44 131 623 3789 or [email protected] and delete this e-mail. 
> The statements and opinions expressed in this message are those of the author 
> and do not necessarily reflect those of the National Library of Scotland. The 
> National Library of Scotland is a registered Scottish charity. Scottish 
> Charity No. SC011086. This message is subject to the Data Protection Act 1998
> and Freedom of Information (Scotland) Act 2002 and has been
> scanned by Webroot.
> ***********************************************************************
>
> Follow us on Twitter for twice-weekly updates.
> Become our fan on Facebook and keep up-to-date that way too.
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>
>
>
> _______________________________________________
> Dspace-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-devel

-- 
Mit freundlichen Gruessen

Claudia Juergen
Universitaetsbibliothek Dortmund
Eldorado
0231/755-4043
https://eldorado.tu-dortmund.de/

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to