Adobe 38000382 - Macromedia JRun - Mac Manual page 102

Jrun sdk guide
Table of Contents

Advertisement

}
Defining a service element
You define the
service in the jrun.xml file. The service contains a filename attribute, as the following
example shows:
...
<service class="jrunx.logger.ThreadedLogEventHandler"
<service class="jrunx.logger.FileLogEventHandler" name="FileLogEventHandler">
<attribute name="filename">{jrun.rootdir}/logs/{jrun.server.name}-event.log
</attribute>
</service>
<service class="XMLLogEventHandler" name="XMLLogEventHandler">
</service>
</service>
...
88
Chapter 8 JRun Services
}
finally {
if (out != null) {
out.close();
} // end if
} // end finally
return true;
} // end logEvent method
public void flush()
{
// No-op
}
XMLLogEventHandler
name="ThreadedLogEventHandler">
<attribute name="rotationSize">200000</attribute>
<attribute name="rotationFiles">3</attribute>
<attribute name="heading">
# Created by JRun on {date MM/dd HH:mm:ss}</attribute>
<attribute name="closeDelay">5000</attribute>
<attribute name="filename">
{jrun.rootdir}/logs/{jrun.server.name}-event.xml</attribute>
as a service within
ThreadedLogEventHandler

Advertisement

Table of Contents
loading

This manual is also suitable for:

Macromedia jrun 4

Table of Contents