home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Administrator / logging / index.cfm (.txt) < prev    next >
Encoding:
ColdFusion Encrypted Template  |  1999-04-12  |  5.4 KB  |  121 lines

  1. <HTML>
  2. <HEAD>
  3.     <TITLE>ColdFusion Administrator - Logging </TITLE>
  4.     <META NAME="Author" CONTENT="Copyright 1996 Allaire Corp. All rights reserved.">
  5.     <META NAME="Version" CONTENT="$Revision: 34 $ $Modtime: 2/06/99 2:46p $">
  6. </HEAD>
  7. <!--- General page formatting is controled by this template --->
  8. <cfinclude template="../formatting/header.cfm">
  9.  
  10. <CFNewInternalRegistry ACTION=SET    ENTRY="Logging" BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion" TYPE="KEY">
  11.  
  12. <CFSET AdminEMail           = "">
  13. <CFSET LogFilePath          = "">
  14. <CFSET SlowPageThreshold = 0>
  15. <CFSET bUseSysLog         = 0>
  16.  
  17.  
  18. <CFIF ParameterExists(JustBrowsed)>
  19.     <CFSET AdminEMail        = Client.AdminEMail>
  20.     <CFSET LogFilePath       = Client.LogFilePath>
  21.     <CFSET SlowPageThreshold = Client.SlowPageThreshold>
  22.     <CFSET bUseSysLog         = Client.bUseSysLog>
  23.  
  24.     <CFIF #FORM.SelectedPath# IS NOT "">
  25.         <CFSET LogFilePath = "#FORM.SelectedPath#">        
  26.     </CFIF>
  27. <CFELSE>
  28.     <!----------------------------------------------------------------------------
  29.         Get general error logging settings.
  30.     ------------------------------------------------------------------------------>
  31.     <CFNewInternalRegistry ACTION=GET    BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
  32.                     TYPE="STRING"
  33.                     VARIABLE="AdminEMail" 
  34.                     ENTRY="AdminEMail">
  35.  
  36.     <CFNewInternalRegistry ACTION=GET    BRANCH ="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging"
  37.                     TYPE="STRING"
  38.                     VARIABLE="LogFilePath" 
  39.                     ENTRY="LogFilePath">
  40.                     
  41.     <CFNewInternalRegistry ACTION=GET  BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging" 
  42.                     Type="STRING"
  43.                     VARIABLE=SlowPageThreshold 
  44.                     ENTRY="SlowPageThreshold">
  45.                     
  46.     <CFNewInternalRegistry ACTION=GET  BRANCH="HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\Logging" 
  47.                     Type="STRING"
  48.                     VARIABLE=bUseSysLog 
  49.                     ENTRY="UseSysLog">
  50. </CFIF>
  51.  
  52.  
  53. <FORM ACTION="updatelogging.cfm" METHOD="POST">
  54. <CFOUTPUT>
  55. <FONT SIZE="#Evaluate(2 + FONTSIZE)#" FACE="#FONTFACE#"><B>General Error Logging </B></FONT><P>
  56.  
  57. <TABLE>
  58. <TR>
  59. <TD WIDTH=100 ALIGN=left VALIGN=top><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>Administrator E-Mail</B></FONT></TD>
  60. <TD VALIGN=top><INPUT TYPE="TEXT" NAME="AdminEmail" VALUE="#AdminEMail#" SIZE=35><BR>
  61. <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">Type in the email address of the server administrator.
  62. This address will appear under each error message for reporting purposes. This global setting can be
  63. overriden in specific web aplications using the application framework in the application.cfm file.</FONT></TD>
  64. </TR>
  65. <TR>
  66. <TD ALIGN=left VALIGN=top><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>Log Directory </B></FONT></TD>
  67. <TD VALIGN=top><INPUT TYPE="TEXT" NAME="LogFilePath" VALUE="#LogFilePath#" SIZE=35>
  68. <CFIF NOT #enforceAdminSecurity# OR isAuthorized("UserObject","CFAdministrator")>             
  69. <INPUT TYPE="SUBMIT" NAME="Browse" VALUE="Browse Server..."><BR>
  70. <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">Type in the directory to which error log files
  71. are written or click <B>Browse Server</B> to select from the directory tree.
  72. The drive you specify must have sufficient disk space and security privileges
  73. for the ColdFusion system service.</FONT>
  74. <CFELSE>
  75. <BR>
  76. <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">Type in the directory to which error log files
  77. are written.  The drive you specify must have sufficient disk space and security privileges
  78. for the ColdFusion system service.</FONT>
  79. </CFIF>
  80. </TR>
  81. <TR>
  82. <TD ALIGN=left VALIGN=top><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>Log Slow Pages </B></FONT></TD>
  83. <TD VALIGN=top><CFIF SlowPageThreshold IS NOT 0>
  84.                     <INPUT Name="SlowPageCheckbox" Type="CHECKBOX" CHECKED>
  85.                 <CFELSE>
  86.                     <INPUT Name="SlowPageCheckbox" Type="CHECKBOX">
  87.                 </CFIF>
  88.                 <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">
  89.                     <B>Log pages taking longer than</B> 
  90.                     <INPUT Name="SlowPageThreshold" Type="TEXT" Value="#SlowPageThreshold#" Size=3 MaxLength=10 onFocus="select()"> 
  91.                     <B>seconds</B>
  92.                     <BR>
  93. <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#">To help diagnose potential problems or bottlenecks in your site,
  94. you can have ColdFusion log the names of any pages that take over a specified length of time to return.
  95. When enabled, any output will be written to the "server.log".</FONT>
  96. </TR>
  97. <TR>
  98. <TD ALIGN=left VALIGN=top><FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>System Logging</B></FONT></TD>
  99. <TD VALIGN=top><CFIF bUseSysLog IS NOT 0>
  100.                     <INPUT Name="UseSysLogCheckbox" Type="CHECKBOX" CHECKED>
  101.                 <CFELSE>
  102.                     <INPUT Name="UseSysLogCheckbox" Type="CHECKBOX">
  103.                 </CFIF>
  104. <FONT SIZE="#FONTSIZE#" FACE="#FONTFACE#"><B>Use Operating System Logging Facilities</B><BR>
  105. When enabled, some ColdFusion log messages will be written using whatever logging
  106. facilities your operating system provides. (On NT that would be the EventLog. On
  107. UNIX that would be the syslog facility.) Regardless of this setting, all ColdFusion
  108. log message are also always written to the standard ColdFusion log files.</FONT>
  109. </CFOUTPUT>
  110. <!-- Form buttons -->
  111. <CFSET ApplyButtonName = "UpdateGenLogInfo">
  112. <CFINCLUDE TEMPLATE="..\include\stdformbuttons.cfm">
  113. </TD>
  114. </TR>
  115. </TABLE>
  116.  
  117. <!--- This closes the page formatting template --->
  118. <CFINCLUDE TEMPLATE="../formatting/footer.cfm">
  119. </BODY>
  120. </HTML>
  121.