-
Type:
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: 6.2.0 CE RC2
-
Fix Version/s: 6.2.0 CE M2
-
Component/s: Portal Services, Portal Services > Legacy
-
Labels:None
-
Environment:OSX 10.8.5 + JDK 1.7.40
I define a FileAppender to create the file mylog.log (where the log messages of my portlet must be saved). The problem is that mylog.log is never created by Liferay.
In my portal-log4j.xml (inside my plugin) I have:
portal-log4j.xml
... <param name="FileNamePattern" value="@liferay.home@/logs/mylog.log" /> ...
And in my portlet I have:
NewPortlet.java
... private static final Log LOG = LogFactoryUtil.getLog(NewPortlet.class); ... LOG.info("MY_LOG2"); ...
In the console I see the message "16:13:23,695 INFO [http-bio-8080-exec-5][NewPortlet:117] MY_LOG2" but no mylog.log file is created.