<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE log4j:configuration SYSTEM 'log4j.dtd'>

<log4j:configuration>

<appender name='JpcspAppender' class='jpcsp.log.TextPaneAppender'>
<layout class='org.apache.log4j.PatternLayout'>
<param name='ConversionPattern' value='%r [%t] %-5p %c - %m%n' />
</layout>
</appender>
<appender name='HTMLAppender' class='org.apache.log4j.FileAppender'>
<param name='File' value='log.html' />
<param name='Append' value='false' />
<layout class='jpcsp.log.HTMLLayout'>
<param name='Title' value='Jpcsp log file' />
</layout>
</appender>
<appender name='ProfilerTxtAppender' class='org.apache.log4j.FileAppender'>
<param name='File' value='profiler.txt' />
<param name='Append' value='false' />
<layout class='org.apache.log4j.PatternLayout'>
<param name='ConversionPattern' value='%m%n' />
</layout>
</appender>
  <appender name='KprintfTxtAppender' class='org.apache.log4j.FileAppender'>
    <param name='File' value='kprintf.txt' />
    <param name='Append' value='false' />
    <layout class='org.apache.log4j.PatternLayout'>
      <param name='ConversionPattern' value='%m' />
    </layout>
  </appender>
  <appender name='ExportGeObjAppender' class='org.apache.log4j.FileAppender'>
    <param name='File' value='export/export.obj' />
    <param name='Append' value='false' />
    <layout class='org.apache.log4j.PatternLayout'>
      <param name='ConversionPattern' value='%m%n' />
    </layout>
  </appender>
  <appender name='ExportGeMtlAppender' class='org.apache.log4j.FileAppender'>
    <param name='File' value='export/export.mtl' />
    <param name='Append' value='false' />
    <layout class='org.apache.log4j.PatternLayout'>
      <param name='ConversionPattern' value='%m%n' />
    </layout>
  </appender>
  <appender name="TxtAppender" class="org.apache.log4j.FileAppender">
    <param name="File" value="log.txt" />
    <param name="Append" value="false" />
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{HH:mm:ss} %5p %8c - %t - %m%n" />
    </layout>
  </appender>

<logger name='cpu' />
<logger name='hle' />
<logger name='memory' />
<logger name='ge' />
<logger name='emu' />
<logger name='compiler' />
<logger name='runtime' />
<logger name='loader' />
<logger name='stdout' />
<logger name='stderr' />

<!-- Output profiler info to 'profiler.txt' -->
<logger name='profiler' additivity='false'>
<level value='info' />
<appender-ref ref='ProfilerTxtAppender' />
</logger>

<!-- Output Kprintf info to 'kprintf.txt' -->
<logger name='kprintf' additivity='false'>
<level value='info' />
<appender-ref ref='KprintfTxtAppender' />
</logger>

<!-- Output for Ge export -->
<logger name="exportGeObj" additivity='false'>
<level value='info' />
<appender-ref ref='ExportGeObjAppender' />
</logger>
<logger name="exportGeMtl" additivity='false'>
<level value='info' />
<appender-ref ref='ExportGeMtlAppender' />
</logger>

<root>
<level value ='off' />
<appender-ref ref='JpcspAppender' />
<appender-ref ref='HTMLAppender' />
</root>

</log4j:configuration>
