A.5. 附录:缺省的logging.xml配置文件

<?xml version="1.0"?>
<!DOCTYPE logging SYSTEM "http://www.apusic.com/dtds/logging.dtd">
<!-- Logging configuration -->
<logging>
  <handler class="com.apusic.logging.ConsoleHandler">
    <property name="level" value="ALL"/>
     <formatter class="com.apusic.logging.SimpleFormatter"/>
  </handler>
   <handler class="com.apusic.tools.admin.WebConsoleHandler">
    <property name="level" value="ALL"/>
    <formatter class="com.apusic.logging.SimpleFormatter"/>
  </handler>
  <handler class="java.util.logging.FileHandler">
    <property name="level" value="ALL"/> 
    <property name="limit" value="1000000"/>
    <property name="count" value="10"/>
    <property name="pattern" value="%h/logs/apusic.log"/>
    <property name="append" value="true"/>
    <formatter class="com.apusic.logging.SimpleFormatter"/>
  </handler>
  <!-- Set the logging level for the root of the namespace. -->
  <!-- This becomes the default logging level for all Loggers. -->
  <logger name="" level="WARNING"/>
  <!-- The default logging level for server services. -->
  <logger name="apusic" level="WARNING"/>
  <logger name="apusic.server" level="INFO"/>
  <logger name="apusic.service" level="INFO"/>
</logging>