A logging mechanism is provided in the PortletContext, accessible from GenericPortlet.getPortletContext() method. The PortletContext.log() method will print a time-stamped message to the web container log and also to the portal log. There are two places to find the logs for the portlet:
Includes PortletContext.log() messages
Includes PortletContext.log() messages. These messages are logged at the log level INFO.