home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <TITLE>ColdFusion Administrator - Logging </TITLE>
- <META NAME="Author" CONTENT="Copyright 1996 Allaire Corp. All rights reserved.">
- <META NAME="Version" CONTENT="$Revision: 34 $ $Modtime: 2/06/99 2:46p $">
- </HEAD>
- <!--- General page formatting is controled by this template --->
- <cfinclude template="../formatting/header.cfm">
-
- <CFNewInternalRegistry ACTION=SET ENTRY="Logging" BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion" TYPE="KEY">
-
- <CFSET AdminEMail = "">
- <CFSET LogFilePath = "">
- <CFSET SlowPageThreshold = 0>
- <CFSET bUseSysLog = 0>
-
-
- <CFIF ParameterExists(JustBrowsed)>
- <CFSET AdminEMail = Client.AdminEMail>
- <CFSET LogFilePath = Client.LogFilePath>
- <CFSET SlowPageThreshold = Client.SlowPageThreshold>
- <CFSET bUseSysLog = Client.bUseSysLog>
-
- <CFIF #FORM.SelectedPath# IS NOT "">
- <CFSET LogFilePath = "#FORM.SelectedPath#">
- </CFIF>
- <CFELSE>
- <!----------------------------------------------------------------------------
- Get general error logging settings.
- ------------------------------------------------------------------------------>
- <CFNewInternalRegistry ACTION=GET BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
- TYPE="STRING"
- VARIABLE="AdminEMail"
- ENTRY="AdminEMail">
-
- <CFNewInternalRegistry ACTION=GET BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
- TYPE="STRING"
- VARIABLE="LogFilePath"
- ENTRY="LogFilePath">
-
- <CFNewInternalRegistry ACTION=GET BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
- Type="STRING"
- VARIABLE=SlowPageThreshold
- ENTRY="SlowPageThreshold">
-
- <CFNewInternalRegistry ACTION=GET BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
- Type="STRING"
- VARIABLE=bUseSysLog
- ENTRY="UseSysLog">
- </CFIF>
-
-
- <FORM ACTION="updatelogging.cfm" METHOD="POST">
- <CFOUTPUT>
- <FONT SIZE="#Evaluate(2 + FONTSIZE)#" FACE="#FONTFACE#"><B>General Error Logging </B></FONT><P>
-
- <TABLE>
- <TR>
- <TD WIDTH=100 ALIGN=left VALIGN=top><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>Administrator E-Mail</B></FONT></TD>
- <TD VALIGN=top><INPUT TYPE="TEXT" NAME="AdminEmail" VALUE="#AdminEMail#" SIZE=35><BR>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">Type in the email address of the server administrator.
- This address will appear under each error message for reporting purposes. This global setting can be
- overriden in specific web aplications using the application framework in the application.cfm file.</FONT></TD>
- </TR>
- <TR>
- <TD ALIGN=left VALIGN=top><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>Log Directory </B></FONT></TD>
- <TD VALIGN=top><INPUT TYPE="TEXT" NAME="LogFilePath" VALUE="#LogFilePath#" SIZE=35>
- <CFIF NOT #enforceAdminSecurity# OR isAuthorized("UserObject","CFAdministrator")>
- <INPUT TYPE="SUBMIT" NAME="Browse" VALUE="Browse Server..."><BR>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">Type in the directory to which error log files
- are written or click <B>Browse Server</B> to select from the directory tree.
- The drive you specify must have sufficient disk space and security privileges
- for the ColdFusion system service.</FONT>
- <CFELSE>
- <BR>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">Type in the directory to which error log files
- are written. The drive you specify must have sufficient disk space and security privileges
- for the ColdFusion system service.</FONT>
- </CFIF>
- </TR>
- <TR>
- <TD ALIGN=left VALIGN=top><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>Log Slow Pages </B></FONT></TD>
- <TD VALIGN=top><CFIF SlowPageThreshold IS NOT 0>
- <INPUT Name="SlowPageCheckbox" Type="CHECKBOX" CHECKED>
- <CFELSE>
- <INPUT Name="SlowPageCheckbox" Type="CHECKBOX">
- </CFIF>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
- <B>Log pages taking longer than</B>
- <INPUT Name="SlowPageThreshold" Type="TEXT" Value="#SlowPageThreshold#" Size=3 MaxLength=10 onFocus="select()">
- <B>seconds</B>
- <BR>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">To help diagnose potential problems or bottlenecks in your site,
- you can have ColdFusion log the names of any pages that take over a specified length of time to return.
- When enabled, any output will be written to the "server.log".</FONT>
- </TR>
- <TR>
- <TD ALIGN=left VALIGN=top><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>System Logging</B></FONT></TD>
- <TD VALIGN=top><CFIF bUseSysLog IS NOT 0>
- <INPUT Name="UseSysLogCheckbox" Type="CHECKBOX" CHECKED>
- <CFELSE>
- <INPUT Name="UseSysLogCheckbox" Type="CHECKBOX">
- </CFIF>
- <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>Use Operating System Logging Facilities</B><BR>
- When enabled, some ColdFusion log messages will be written using whatever logging
- facilities your operating system provides. (On NT that would be the EventLog. On
- UNIX that would be the syslog facility.) Regardless of this setting, all ColdFusion
- log message are also always written to the standard ColdFusion log files.</FONT>
- </CFOUTPUT>
- <!-- Form buttons -->
- <CFSET ApplyButtonName = "UpdateGenLogInfo">
- <CFINCLUDE TEMPLATE="..\include\stdformbuttons.cfm">
- </TD>
- </TR>
- </TABLE>
-
- <!--- This closes the page formatting template --->
- <CFINCLUDE TEMPLATE="../formatting/footer.cfm">
- </BODY>
- </HTML>
-