Loggers
JyRetic uses log4j as logging system.
Declaring loggers is done the same way as in retic.
You just have give your logger tags the attributes that correspond
to log4j appenders.
Available appenders are :
FileAppender
<logger name="FileAppender0" type="logger"
format="[%d{yyyy-MM-dd HH:mm:ss,SSS}] %p %m%n" level="INFO"
fileName="trace.log" handler="FileAppender"
mode="a"/>
DailyRollingFileAppender
<logger name="DailyRollingFileAppender1" type="logger"
format="[%d{yyyy-MM-dd HH:mm:ss,SSS}] %p %m%n" level="INFO"
fileName="trace.log" handler="DailyRollingFileAppender"
mode="a" datePattern="[Enter rollover date pattern]"/>
IMAppender (Sends an Instant Message using the jabber
protocol)
<logger name="IMAppender2" type="logger"
username="[Enter Jabber username]" buffersize="
" level="INFO" recipient="[Enter log recipient
(username@serverName)]" format="[%d{yyyy-MM-dd HH:mm:ss,SSS}]
%p %m%n" nickname=" " SSL="" host="[Enter
Jabber server name]" handler="IMAppender" chatroom="
" password="[Enter Jabber password] " port="
"/>
RollingFileAppender
<logger name="RollingFileAppender3" type="logger"
format="[%d{yyyy-MM-dd HH:mm:ss,SSS}] %p %m%n" level="INFO"
fileName="trace.log" handler="RollingFileAppender"
mode="a" maxBytes="[Enter maximum size of log files]"/>
SMTPAppender
<logger name="SMTPAppender4" type="logger"
From="[Enter sender adress]" level="INFO"
format="[%d{yyyy-MM-dd HH:mm:ss,SSS}] %p %m%n" To="[Enter
recipients adress]" handler="SMTPAppender" SMTPHost="[Enter
SMTP server adress]" BufferSize="" Subject="[Enter
mail subject]"/>
SocketAppender
<logger name="SocketAppender5" format=""
host="" handler="SocketAppender" port=""/>
|