[opencms-dev] No opencms.log file in version 9.5?
Ana RD
anard40 at gmail.com
Fri Jan 16 11:31:49 CET 2015
Hello,
I'd to change log4j.properties in opencms 9.5+ windows:
....
opencms.logfile=C:\\Program Files\\Apache Software Foundation\\Tomcat
7.0\\webapps\\opencms\\WEB-INF\\logs\\opencms.log
<file://program%20files//Apache%20Software%20Foundation//Tomcat%207.0//webapps//opencms//WEB-INF//logs//opencms.log>
....
Otherwise, "opencms.log" was created in C:\Program Files\Apache Software
Foundation\Tomcat 7.0 with the same settings in opencms 9.0.
--
Best regards,
2015-01-16 10:38 GMT+01:00 Kai Widmann <Widmann at mediaworx.com>:
> Hi Christoph,
>
>
>
> 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.
>
> There is some documentation in log4j.properties:
>
>
>
> # OpenCms provides a special variable ${opencms.logfile} to the
> environment, which contains
>
> # the log file path. The location of this file is calculated relative to
> this
>
> # "log4j.properties" file on OpenCms startup. If this file is located in
> the folder "${classes}",
>
> # then the log is written to "${classes}../logs/opencms.log".
>
> # To disable this mechanism, you must set ${opencms.set.logfile} to
> "false". In this case
>
> # you must configure the log output file manually.
>
>
>
> 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.
>
>
>
> Maybe there is some different behavior because I’m using Tomcat 7 and you
> are using Tomcat 6?
>
>
>
> Cheers
>
>
>
> Kai
>
>
>
>
>
> *Von:* Christoph Kukulies [mailto:kuku at physik.rwth-aachen.de]
> *Gesendet:* Freitag, 16. Januar 2015 09:22
> *An:* Kai Widmann; The OpenCms mailing list
>
> *Betreff:* Re: [opencms-dev] No opencms.log file in version 9.5?
>
>
>
> Hi Kai,
>
> I also did a full install 9.5.0 yesterday once again. It's time to write
> automatic scripts that copy back in
> all my configuration files :)
>
> You are right, that opencms.log is in it's right place. But it has 0 bytes
> and date stamp is 18.02.2014.
>
> Instead every logging goes into opencms_init.log which is (IMHO) not in
> the right place when OpenCms
> puts everything into the tomcat root:
>
> C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0>ls -l
> total 22928
> -rwx------+ 1 Administratoren None 57695 Nov 14 11:05 LICENSE
> -rwx------+ 1 Administratoren None 783 Nov 14 11:05 NOTICE
> -rwx------+ 1 Administratoren None 67272 Jan 14 18:27 Uninstall.exe
> drwx------+ 1 Administratoren None 0 Jan 14 18:20 bin
> drwx------+ 1 Administratoren None 0 Jan 15 15:49 conf
> drwx------+ 1 Administratoren None 0 Jan 14 18:20 lib
> drwx------+ 1 Administratoren None 0 Jan 15 10:41 logs
> -rwxrwx---+ 1 Administratoren SYSTEM 1584752 Jan 16 09:00
> opencms-search.log
> -rwxrwx---+ 1 Administratoren SYSTEM 2097206 Jan 16 08:58
> opencms-search.log.1
> -rwxrwx---+ 1 Administratoren SYSTEM 2097306 Jan 16 08:55
> opencms-search.log.2
> -rwxrwx---+ 1 Administratoren SYSTEM 2097190 Jan 15 17:14
> opencms-search.log.3
> -rwxrwx---+ 1 Administratoren SYSTEM 2097205 Jan 15 17:13
> opencms-search.log.4
> -rwxrwx---+ 1 Administratoren SYSTEM 2097927 Jan 15 17:13
> opencms-search.log.5
> -rwxrwx---+ 1 Administratoren SYSTEM 630573 Jan 16 08:55 opencms_init.log
> -rwxrwx---+ 1 Administratoren SYSTEM 2098376 Jan 16 08:55
> opencms_init.log.1
> -rwxrwx---+ 1 Administratoren SYSTEM 2099588 Jan 16 08:55
> opencms_init.log.2
> -rwxrwx---+ 1 Administratoren SYSTEM 2097974 Jan 16 08:55
> opencms_init.log.3
> -rwxrwx---+ 1 Administratoren SYSTEM 2098564 Jan 16 08:55
> opencms_init.log.4
> -rwxrwx---+ 1 Administratoren SYSTEM 2100005 Jan 16 08:55
> opencms_init.log.5
> drwx------+ 1 Administratoren None 0 Jan 15 16:58 temp
> -rwx------+ 1 Administratoren None 21630 Nov 14 11:05 tomcat.ico
> drwx------+ 1 Administratoren None 0 Jan 15 12:57 webapps
> drwx------+ 1 Administratoren None 0 Jan 14 18:27 work
>
> I'm assuming that WEB-INF/classes/log4j.properties is the right file where
> the log4j configuration goes. And it starts with:
> opencms.set.logfile=true
> opencms.logfile=opencms_init.log
>
>
> Am 15.01.2015 um 17:41 schrieb Kai Widmann:
>
> Hi Christoph,
>
>
>
> 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?
>
> Maybe we should compare out log4j.properties?
>
>
>
> Cheers
>
>
>
> Kai
>
>
>
> *Von:* opencms-dev-bounces at opencms.org [
> mailto:opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org>] *Im
> Auftrag von *Christoph Kukulies
> *Gesendet:* Donnerstag, 15. Januar 2015 09:10
> *An:* opencms-dev at opencms.org
> *Betreff:* Re: [opencms-dev] No opencms.log file in version 9.5?
>
>
>
> Am 14.01.2015 um 22:06 schrieb Tom Wolf:
>
> Yeah, as I mentioned in this thread - the log is now written to the
> Tomcat's root directory under the name: opencms_init.log
>
>
> This is true and I also pointed this out in a previous message here that
> these logfiles clobber tomcats root directory. Not very nice.
> But actually it is opencms.log which seems to have disappeared and I
> believe (not sure though) that the output goes into one of
> tomcats various stdout/stderr/localhost files.
>
>
>
>
> ------------------------------
>
> Date: Wed, 14 Jan 2015 18:08:03 +0100
> From: antoniocordeddu at coranto.it
> To: opencms-dev at opencms.org
> Subject: Re: [opencms-dev] No opencms.log file in version 9.5?
>
> Hi Tom,
>
> I have the same problem on my OpenCms 9.5 installation on Windows 7,
> Apache Tomcat 7.0.42.
> 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).
>
> Have you solved the issue?
> Someone else has encountered the same problem?
>
> Antonio Cordeddu
>
>
> On 04/11/2014 14:24, Tom Wolf wrote:
>
> Is it just me?
>
>
>
>
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
>
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
--
Saludos,
Ana Belén Rodríguez Díaz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150116/91d6bb5e/attachment.htm>
More information about the opencms-dev
mailing list