Changing the log file directory

0 views
Skip to first unread message

Randy Johnson

unread,
Dec 30, 2009, 12:30:33 PM12/30/09
to FusionReactor
Hello,

Is there a way for me to change the directory where fusion reactor
stores it's log files?

Thanks!

Randy

Darren Pywell

unread,
Jan 5, 2010, 11:25:55 AM1/5/10
to FusionReactor
Hi Randy,

Yes it's possible to change the directories (and filenames even) of
the FusionReactor log files. The log filenames (and paths) are
controlled via properties in the reactor.conf configuration file. Its
possible to change these properties by hand in the file but you have
to shut FusionReactor down (i.e stop the monitored server) to do it
that way.

The properties to change are :

request.logfile (this is the name of the request-*.log)
resource.logfile (this is the name of the resource-*.log)
jdbc.logfile (this is the name of the jdbc-*.log)
crashprotection.logfile (this is the name of the crashprotection-
*.log)
logfile (this is the name of the reactor-*.log)

Another (and perhaps much easier) way to do it is over the
FusionReactor API - FRAPI for short. The following CFML code snippet
will change the folders for the different log files.

<cftry>
<!--- Get FRAPI --->
<cfset frapiClass = createObject("java",
"com.intergral.fusionreactor.api.FRAPI")>
<cfset frapi = frapiClass.getInstance()>

<cfset config = frapi.getRunningConfiguration()>
<cfset config.setValue("request.logfile", "C:/newlogfolder/
request.log")>
<cfset config.setValue("resource.logfile", "C:/newlogolder/
resource.log")>
<cfset config.setValue("jdbc.logfile", "C:/newlogfolder/jdbc.log")>
<cfset config.setValue("crashprotection.logfile", "C:/newlogfolder/
crashprotection.log")>
<cfset config.setValue("logfile", "C:/newlogfolder/reactor.log")>

<cfset frapi.setRunningConfiguration(config)>
<cfcatch>
<!--- Use a try/catch in case FusionReactor is not installed --->
</cfcatch>
</cftry>

We'll be pusblishing a DevNet article soon about rotating the
FusionReactor log directories.

Hope that helps,
Darren

Reply all
Reply to author
Forward
0 new messages