<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Christoph, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>now it gets really confusing. My log4j.properties also points to opencms_init.log, but still OpenCms logs to opencms.log, opencms_init.log doesn’t exist on my system.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>There is some documentation in log4j.properties:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'># OpenCms provides a special variable ${opencms.logfile} to the environment, which contains<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'># the log file path. The location of this file is calculated relative to this <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'># "log4j.properties" file on OpenCms startup. If this file is located in the folder "${classes}",<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'># then the log is written to "${classes}../logs/opencms.log". <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'># To disable this mechanism, you must set ${opencms.set.logfile} to "false". In this case <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'># you must configure the log output file manually.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If I understand this correctly, then the Logfile configured in log4j.properties as “opencms.logfile” is only used if “opencms.set.logfile” is set to false.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Maybe there is some different behavior because I’m using Tomcat 7 and you are using Tomcat 6?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Kai<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Christoph Kukulies [mailto:kuku@physik.rwth-aachen.de] <br><b>Gesendet:</b> Freitag, 16. Januar 2015 09:22<br><b>An:</b> Kai Widmann; The OpenCms mailing list<br><b>Betreff:</b> Re: [opencms-dev] No opencms.log file in version 9.5?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Kai,<br><br>I also did a full install 9.5.0 yesterday once again. It's time to write automatic scripts that copy back in<br>all my configuration files :)<br><br>You are right, that opencms.log is in it's right place. But it has 0 bytes and date stamp is 18.02.2014.<br><br>Instead every logging goes into opencms_init.log which is (IMHO) not in the right place when  OpenCms<br>puts everything into the tomcat root:<br><br><span style='font-size:10.0pt;font-family:"Courier New"'>C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0>ls -l<br>total 22928<br>-rwx------+ 1 Administratoren None     57695 Nov 14 11:05 LICENSE<br>-rwx------+ 1 Administratoren None       783 Nov 14 11:05 NOTICE<br>-rwx------+ 1 Administratoren None     67272 Jan 14 18:27 Uninstall.exe<br>drwx------+ 1 Administratoren None         0 Jan 14 18:20 bin<br>drwx------+ 1 Administratoren None         0 Jan 15 15:49 conf<br>drwx------+ 1 Administratoren None         0 Jan 14 18:20 lib<br>drwx------+ 1 Administratoren None         0 Jan 15 10:41 logs<br>-rwxrwx---+ 1 Administratoren SYSTEM 1584752 Jan 16 09:00 opencms-search.log<br>-rwxrwx---+ 1 Administratoren SYSTEM 2097206 Jan 16 08:58 opencms-search.log.1<br>-rwxrwx---+ 1 Administratoren SYSTEM 2097306 Jan 16 08:55 opencms-search.log.2<br>-rwxrwx---+ 1 Administratoren SYSTEM 2097190 Jan 15 17:14 opencms-search.log.3<br>-rwxrwx---+ 1 Administratoren SYSTEM 2097205 Jan 15 17:13 opencms-search.log.4<br>-rwxrwx---+ 1 Administratoren SYSTEM 2097927 Jan 15 17:13 opencms-search.log.5<br>-rwxrwx---+ 1 Administratoren SYSTEM  630573 Jan 16 08:55 opencms_init.log<br>-rwxrwx---+ 1 Administratoren SYSTEM 2098376 Jan 16 08:55 opencms_init.log.1<br>-rwxrwx---+ 1 Administratoren SYSTEM 2099588 Jan 16 08:55 opencms_init.log.2<br>-rwxrwx---+ 1 Administratoren SYSTEM 2097974 Jan 16 08:55 opencms_init.log.3<br>-rwxrwx---+ 1 Administratoren SYSTEM 2098564 Jan 16 08:55 opencms_init.log.4<br>-rwxrwx---+ 1 Administratoren SYSTEM 2100005 Jan 16 08:55 opencms_init.log.5<br>drwx------+ 1 Administratoren None         0 Jan 15 16:58 temp<br>-rwx------+ 1 Administratoren None     21630 Nov 14 11:05 tomcat.ico<br>drwx------+ 1 Administratoren None         0 Jan 15 12:57 webapps<br>drwx------+ 1 Administratoren None         0 Jan 14 18:27 work<br><br></span>I'm assuming that WEB-INF/classes/log4j.properties is the right file where the log4j configuration goes. And it starts with:<br>opencms.set.logfile=true<br>opencms.logfile=opencms_init.log<br><br><br>Am 15.01.2015 um 17:41 schrieb Kai Widmann:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Christoph, </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I have a clean install of OpenCms 9.5 and opencms.log is exactly where it has always been (under WEB-INF/logs). Did you do an update?</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Maybe we should compare out log4j.properties?</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Kai</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> <a href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</a> [<a href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</a>] <b>Im Auftrag von </b>Christoph Kukulies<br><b>Gesendet:</b> Donnerstag, 15. Januar 2015 09:10<br><b>An:</b> <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br><b>Betreff:</b> Re: [opencms-dev] No opencms.log file in version 9.5?</span><o:p></o:p></p></div></div><p class=MsoNormal> <o:p></o:p></p><div><p class=MsoNormal>Am 14.01.2015 um 22:06 schrieb Tom Wolf:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal style='margin-bottom:12.0pt'>Yeah, as I mentioned in this thread - the log is now written to the Tomcat's root directory under the name: opencms_init.log<o:p></o:p></p></div></blockquote><p class=MsoNormal><br>This is true and I also pointed this out in a previous message here that these logfiles clobber tomcats root directory. Not very nice.<br>But actually it is opencms.log  which seems to have disappeared and I believe (not sure though) that the output goes into one of<br>tomcats various stdout/stderr/localhost files. <br><br><br><br><br><o:p></o:p></p><div><div><div class=MsoNormal align=center style='text-align:center'><hr size=2 width="100%" align=center></div><p class=MsoNormal style='margin-bottom:12.0pt'>Date: Wed, 14 Jan 2015 18:08:03 +0100<br>From: <a href="mailto:antoniocordeddu@coranto.it">antoniocordeddu@coranto.it</a><br>To: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>Subject: Re: [opencms-dev] No opencms.log file in version 9.5?<o:p></o:p></p><div><p class=MsoNormal>Hi Tom,<br><br>I have the same problem on my OpenCms 9.5 installation on Windows 7, Apache Tomcat 7.0.42.<br>Similar problem has been notified by Christoph Kukulies in this mailing list (see email "setting up proper logging (log4j) in opencms 9.5.0 on 5 January 2015).<br><br>Have you solved the issue?<br>Someone else has encountered the same problem?<br><br>Antonio Cordeddu<br><br><br>On 04/11/2014 14:24, Tom Wolf wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>Is it just me? <o:p></o:p></p></div><p class=MsoNormal> <o:p></o:p></p></blockquote></div></div><p class=MsoNormal> <o:p></o:p></p><div><p class=MsoNormal>-- <br>Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de <o:p></o:p></p></div></blockquote><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>-- <br>Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de <o:p></o:p></p></div></div></body></html>