Liferay SLF4J Logging Sample Portlet it's a sample project that combine SLF4J and Liferay Logging Framework to combine the best from them:
- usage of SLF4J Logging API in your custom plugin
- let your custom plugin logging in a separate file
- leverage log4j-extras for log rotating and compressing logs