You can also configure log4j in an xml format. This is required if you want to use some of the new features from apache-log4j-extra, such as the TimeBasedRollingPolicy, which rolls your files at midnight and gzips them!
In order to configure your portal project this way you need to do a few things. If you want to do it the quick way, just apply the patch I've attached to this page.