You can set up the log for what ever you want. I set it to debug (see below) and the exclude all those that I do not want.
If you only want a few message types, I think you can set the log to info and use debug on just the types you want to debug.
You can copy and change the SERVIIO.jar file to .zip then use Express Zip to find the path to the class that displays those messages and add it as below.
You can appreciate there are so many variations of logs that people want that they cannot be preprogrammed, but users could post their log4j customizations.
There is also a tool in the forum to process the log file for the info you want.
- Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!-- ===================================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- The levels of logging are TRACE, DEBUG, INFO, WARN, ERROR and FATAL -->
<!-- -->
<!-- FATAL: shows messages at a FATAL level only -->
<!-- ERROR: Shows messages classified as ERROR and FATAL -->
<!-- WARNING: Shows messages classified as WARNING thru FATAL -->
<!-- INFO: Shows messages classified as INFO thru FATAL -->
<!-- DEBUG: Shows messages classified as DEBUG thru FATAL -->
<!-- TRACE : Shows messages classified as TRACE thru FATAL -->
<!-- -->
<!-- ===================================================================== -->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="DEBUG"/>
<param name="Append" value="true" />
<param name="File" value="${serviio.home}/log/serviio.log" />
<param name="MaxFileSize" value="10000KB" />
<param name="MaxBackupIndex" value="3" />
<param name="Encoding" value="UTF-8" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] %m%n"/>
</layout>
</appender>
<category name="org.serviio">
<priority value="DEBUG"/>
</category>
<!-- Turn off AddTerm Messages -->
<category name="org.serviio.library.search.SearchIndexer">
<priority value="INFO"/>
</category>
<!-- Turn off Local Library Messages -->
<category name="org.serviio.library.local">
<priority value="INFO"/>
</category>
<!-- Debug Online Feeds -->
<category name="org.serviio.library.online">
<priority value="DEBUG"/>
</category>
<!-- Turn off AccessGroupDAOImpl Messages -->
<category name="org.serviio.library.dao">
<priority value="INFO"/>
</category>
<!-- Turn off M-Search Messages -->
<category name="org.serviio.upnp.discovery">
<priority value="ERROR"/>
</category>
<!-- Turn off invalid essence Messages -->
<category name="org.serviio.library.online.metadata.FeedUpdaterThread">
<priority value="INFO"/>
</category>
<!-- Turn off Other Messages -->
<category name="org.serviio.upnp.service.contentdirectory.rest.resources.server.CDSRetrieveMediaServerResource">
<priority value="ERROR"/>
</category>
<category name="org.serviio.delivery.CoverImageRetrievalStrategy">
<priority value="ERROR"/>
</category>
<category name="org.serviio.delivery.GETMethodProcessor">
<priority value="ERROR"/>
</category>
<category name="org.serviio.delivery.MediaResourceRetrievalStrategy">
<priority value="ERROR"/>
</category>
<category name="org.serviio.delivery.ResourceDeliveryProcessor">
<priority value="ERROR"/>
</category>
<category name="org.serviio.delivery.resource.VideoDeliveryEngine">
<priority value="ERROR"/>
</category>
<category name="org.serviio.library.search.SearchManager">
<priority value="ERROR"/>
</category>
<!-- End of Other Messages -->
<category name="com.sun.syndication">
<priority value="ERROR"/>
</category>
<category name="org.jaudiotagger">
<priority value="ERROR"/>
</category>
<category name="org.restlet">
<priority value="ERROR"/>
</category>
<category name="org.apache.jcs">
<priority value="WARN"/>
</category>
<root>
<priority value="INFO"/>
<appender-ref ref="FILE"/>
</root>
</log4j:configuration>