Defining Your Logger
The first step is to define your logger in <installdir>\conf\loggers.xml. Here is an example:
 
<!-- Define a file logger --> 1
<logger name="mylog" class="rwsf_core.createFileLogger">
<property name="filename" value="c:/logs/mylog.log"/>
<property name="formatter"
value="rwsf_core.createLogTimeFormatter"/>
<property name="mode" value="overwrite"/>
</logger>
 
<!-- Filter your file logger. --> 2
<logger name="mylog.info" class="rwsf_core.createLogLevelFilter">
<property name="logger" value="mylog"/>
<property name="filter" value="info"/>
</logger>
//1 Defines a logger named mylog that writes to the file c:\logs\mylog.log.
//2 Defines essentially a new logger, based on the file logger just defined, which writes log messages at the level INFO and above. You could define yet another logger, say mylog.error, which wrote messages only at the ERROR or FATAL levels.