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:
And in my portlet I have:
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.