Thanks a million Tim! This was driving me nuts.<br><br>setting <br>log4j.appender.CONSOLE=${opencms.logfile} <br>and <br>log4j.appender.OC.File=${opencms.logfile} fixed the problem.<br><br><br>I created /WEB-INF/logs/opencms.log manually but I am not sure whether that was necessary.<br>
<br>All the best.<br>Pablo<br><br><br><div class="gmail_quote">2009/4/7 Tech Ops <span dir="ltr"><<a href="mailto:techops@thedoleco.com">techops@thedoleco.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Did you try setting all levels to DEBUG? Also, I see that you
have changed the log file location from what is default. Have you? The default
location line in my log4j is as follows:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">log4j.appender.OC.File=${opencms.logfile}</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">do you have write permissions on the / dir ?</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">You can also try to set the console logger with same setup as the
file logger
</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Sorry, dont have any direct help for you.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Tim Daschner</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">VS Dole corp.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>] <b>On
Behalf Of </b>Pablo<br>
<b>Sent:</b> Monday, April 06, 2009 5:51 AM<br>
<b>To:</b> The OpenCms mailing list<br>
<b>Subject:</b> [opencms-dev] opencms maven. opencms.log not written</span></p>
</div><div><div></div><div class="h5">
<p> </p>
<p>I installed opencms-maven and there is no opencms.log file
neither /logs folder in /WEB-INF directory. How can I get the opencms logs?<br>
<br>
opencms_init.log is empty and below is the content of my log4j.properties.<br>
<br>
# What follows is the default OpenCms log4j configuration.<br>
# OpenCms uses the "commons-logging" component to detect the
available logging implementation.<br>
# A recent log4j.jar is shipped with the default OpenCms installation and thus
log4j is used.<br>
# To use another logging mechanism, delete the shipped log4j.jar in
/WEB-INF/lib.<br>
# You must then provide the configuration of the logging mechanism you want to
use by<br>
# environment settings or startup parameters of the servlet engine.<br>
<br>
# OpenCms provides a special variable /opencms.log to the environment, which
contains<br>
# the log file path. The location of this file is calculated relative to this <br>
# "log4j.properties" file on OpenCms startup. If this file is located
in the folder "${classes}",<br>
# then the log is written to "${classes}../logs/opencms.log". <br>
# To disable this mechanism, you must set ${opencms.set.logfile} to
"false". In this case <br>
# you must configure the log output file manually.<br>
opencms.set.logfile=true<br>
opencms.logfile=opencms_init.log<br>
<br>
# Per default we use WARN debug level and just one appender<br>
log4j.rootLogger=\<br>
ERROR,\<br>
OC<br>
<br>
# ,CONSOLE<br>
<br>
# Optional CONSOLE appender for logging on the system console (good for
debugging during development)<br>
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender<br>
<br>
# CONSOLE uses PatternLayout.<br>
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout<br>
log4j.appender.CONSOLE.layout.ConversionPattern=%5p [%15.15C:%4L] %m%n<br>
<br>
# Set levels for all default channels available in OpenCms<br>
log4j.logger.com.opencms=ERROR<br>
log4j.logger.org.opencms=ERROR<br>
log4j.logger.org.opencms.init=INFO<br>
log4j.logger.org.opencms.monitor=INFO<br>
log4j.logger.org.opencms.scheduler=INFO<br>
log4j.logger.org.opencms.search=INFO<br>
log4j.logger.org.opencms.staticexport=WARN<br>
log4j.logger.org.opencms.jsp.CmsJspLoginBean=INFO<br>
log4j.logger.org.opencms.db.mysql3.CmsProjectDriver=INFO<br>
log4j.logger.org.opencms.db.mysql.CmsProjectDriver=INFO<br>
log4j.logger.org.opencms.db.oracle8.CmsProjectDriver=INFO<br>
log4j.logger.org.opencms.db.oracle.CmsProjectDriver=INFO<br>
log4j.logger.org.opencms.workplace.tools=WARN<br>
<br>
# This default appender configuration simply writes all OpenCms channels in one
log file<br>
# A OpenCms 'channel' directly translates into a 'logger' in the log4j lingo<br>
log4j.appender.OC=org.apache.log4j.RollingFileAppender<br>
<br>
# In a default Tomcat installation, this should place the log file in the
Tomcat log directory<br>
# Adjust this path in case you want to log in another directory<br>
log4j.appender.OC.File=/opencms.log<br>
<br>
# Limit log size to 5mb, then rotate<br>
log4j.appender.OC.MaxFileSize=2mb<br>
<br>
# Keep 5 backup files<br>
log4j.appender.OC.MaxBackupIndex=5<br>
<br>
# This specifies the logfile layout<br>
log4j.appender.OC.layout=org.apache.log4j.PatternLayout<br>
log4j.appender.OC.layout.ConversionPattern=%d{DATE} %5p [%30.30C:%4L] %m%n<br>
<br>
<br>
-- <br>
Molina, vendido, la sgae es de tu primo.<br>
Molina, mamon, el torrent lo mejor.<br>
Tu presencia es daņina, tu gestion es de letrina, pirate ya, molina.<br>
Vete a la mina Molina.<br>
<a href="http://molinapirate.blogspot.com/" target="_blank">http://molinapirate.blogspot.com/</a></p>
</div></div></div>
</div>
<br><br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Molina, vendido, la sgae es de tu primo.<br>
Molina, mamon, el torrent lo mejor.<br>Tu presencia es daņina, tu gestion es de letrina, pirate ya, molina.<br>Vete a la mina Molina.<br><a href="http://molinapirate.blogspot.com/">http://molinapirate.blogspot.com/</a><br>