[opencms-dev] Change log location

Matthias Griselle mgriselle at gmail.com
Thu Nov 14 10:32:13 CET 2013


Hi everyone,

I'm working on OpenCMS 8.5.2 and I'm getting some problems to change the
log location.
I would like to write logs inside jboss' log location instead of opencms
one.

To define the log location, I modified the file
[...]/WEB-INF/classes/log4j.properties to :
log4j.appender.OC.File=${jboss.server.log.dir}/opencms.log
This part is working well. (file created and filled)

But in OpenCMS, when I define the log locaton thought "Administration View
 >  Workplace Tools  >  Log File  >  Logfile Viewer Settings", I got the
following errors :
Unable to write value "[...]\jboss-5.1.0.GA\server\opencms\log\opencms.log"
to property "File path" on object "org.opencms.util.CmsRfsFileViewer".
Impossible to read from the file "[...]\jboss-5.1.0.GA
\server\opencms\log\opencms.log".

The file is found (otherwise, another message, I tried) but isn't readable
by opencms. (works well with notepad, for exemple)

My server is under Windows.
Could it be any rights issue ?
Do you have any idea ?

Thanks for help,
Regards,
Matthias Griselle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20131114/e4f59604/attachment.htm>


More information about the opencms-dev mailing list