I am happy with the following environment.xml. It makes all components log into one stream. It is a rotating system that will give you two files of 10Mb max.
BTW: With the 2.1.2 default we once found a log folder containing 70,000 files. That hung up the windows explorer pretty badly. Maybe it's an idea to have more conservative logging as the default. Cheers, Hes. <?xml version="1.0"?> <server> <logs version="1.1"> <!-- see http://jakarta.apache.org/avalon/excalibur/logger/index.html --> <factories> <factory type="file" class="org.apache.avalon.excalibur.logger.factory.FileTargetFactory"/> </factories> <!-- All logger categories are written in the same file --> <!-- --> <categories> <category name="" log-level="INFO"> <log-target id-ref="default"/> </category> </categories> <targets> <file id="default"> <filename>${app.home}/../../../../log/James-maillog</filename> <format>%{time:dd/MM/yy HH:mm:ss} %5.5{priority} %25.25{category}: %{message}\n%{throwable}</format> <append>false</append> <rotation type="revolving" init="0" max="2" suffix=".log"> <size>20m</size> </rotation> </file> </targets> </logs> </server>