<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=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<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:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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 lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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:<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 style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>log4j.appender.OC.File=${opencms.logfile}<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 style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>do you have write permissions on the / dir ?<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 style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You can also try to set the console logger with same setup as the
file logger…<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 style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Sorry, don’t have any direct help for you.<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 style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Tim Daschner<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>VS Dole corp.<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 style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><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>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <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<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>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/">http://molinapirate.blogspot.com/</a><o:p></o:p></p>

</div>

</body>

</html>