07-11-2012, 07:48 PM
Ah, wait a sec.
I said 'info' in the post but I did do 'debug'!
Here's what it looks like, there's a logger for
<!-- Output profiler info to 'profiler.txt' -->
and
<!-- Output Kprintf info to 'kprintf.txt' -->
I said 'info' in the post but I did do 'debug'!
Here's what it looks like, there's a logger for
<!-- Output profiler info to 'profiler.txt' -->
and
<!-- Output Kprintf info to 'kprintf.txt' -->
Quote:<?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="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:mms} %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='debug' />
<appender-ref ref='ProfilerTxtAppender' />
</logger>
<!-- Output Kprintf info to 'kprintf.txt' -->
<logger name='kprintf' additivity='false'>
<level value='debug' />
<appender-ref ref='KprintfTxtAppender' />
</logger>
<root>
<level value ='off' />
<appender-ref ref='JpcspAppender' />
<appender-ref ref='HTMLAppender' />
</root>
</log4j:configuration>