<?xml version='1.0' encoding='us-ascii'?>
<!DOCTYPE configuration SYSTEM "file:lib/xmlConfiguration.dtd">

<configuration security="off" debug="tcp" trace="tcp" verbose="off">

  <!-- MAIN SERVER -->
  
  <service classbase="SK.gnome.dwarf" class=".main.MainServer" name="Sample Server">
    <set name="logFacility">server</set>

    <!-- CONSOLE -->

    <service classbase="SK.gnome.dwarf.main" class=".Console" name="Console">
      <set name="prompt">true</set>
      <service class=".cmd.HelpCmd" name="?"/>
      <service class=".cmd.HelpCmd" name="help"/>
      <service class=".cmd.LSCmd" name="ls"/>
      <service class=".cmd.CSCmd" name="cs"/>
      <service class=".cmd.ReportCmd" name="report"/>
      <service class=".cmd.DebugCmd" name="debug"/>
      <service class=".cmd.TraceCmd" name="trace"/>
    </service>

    <!-- LOG SERVER -->

    <service class=".log.LogServer" name="Log Server">
      <set name="logFacility">log</set>

      <!-- SCREEN LOGGER -->

      <service class=".log.SystemLogger" name="Console Logger">
        <set name="levels">trace*</set>
        <set name="facilities">all</set>
        <set name="extendedInfo">true</set>
        <set name="dateTimeFormat">HH:mm:ss.SSS</set>
        <set name="markInterval">5</set>
      </service>

      <!-- FILE LOGGER -->

      <service class=".log.FileLogger" name="File Logger">
         <set name="levels">info*</set>
         <set name="facilities">all</set>
         <set name="extendedInfo">true</set>
         <set name="file">log/server.log</set>
      </service>
    </service>

    <!-- TCP SERVER -->

    <service class=".sample.QuoteServer" name="Quote Server">
      <set name="logFacility">rfc865_quote</set>
      <set name="handlerClass">.sample.QuoteHandler</set>
      <set name="minHandlers">1</set>
      <set name="maxHandlers">3</set>
      <set name="quotes">file:conf/samples/dwarf/quote/quotes.properties</set>

      <!-- TCP LISTENER -->

      <service class=".tcpip.TCPListener" name="Quote Listener">
        <set name="port">17</set>
      </service>

    </service>

  </service>

</configuration>