Mail Logging ColdFusion Help

The Mail Logging screen, shown in Figure 35.22, allows the specification of two simple settings related to the logging of sending of e-mail messages via ColdFusion. The first setting indicates which level of severity should be logged. Severity levels for messages are Information, Warning, and Error. The second setting indicates whether the content of all messages should be saved to the log files.

Log Files

The Log Files screen, shown in Figure 35.23, displays the name, size, and last modification date of existing ColdFusion log files. You can click the names of any log files to view them. This leads to a supplementary screen where you can choose to view the file in the
Web browser or download it for offline viewing. If you choose to view a log file online, it will look like Figure 35.24.

Automated Tasks

The Automated Tasks section enables you to schedule templates to execute automatically and to manage events after they are scheduled. Use of this section of the ColdFusion Administrator is covered in depth in Chapter 28, “Scheduling Events.”

Miscellaneous

The final section of the ColdFusion Administrator brings together several screens that don’t belong directly in other sections:
• Mail
• Debugging
• Verity
Source Control
Use of the Mail screen is covered, “Sending Mail.” The Verity screen is covered, “Implementing a Search Engine.”

Debugging

The Debug Settings screen, shown in Figure 35.25, provides settings that can help developers debug their applications and templates.

Five main settings are on the page:

Enable

Performance Monitoring Enables Cold Fusion performance information to be viewed in the Windows NT Performance Monitor. This is known to create system overhead on the server and can affect the performance of heavily used systems. Therefore, it is wise to use it for testing and statistics purposes but to leave’ it disabled during normal system use.

Enable

CFML stack trace If enabled, when a CFML structured exception occurs, the CFCATCH, TAG-CONTEXT variable will be populated with information about tags executing when the exception occurred. Show Variables Causes the name and value of CGI, URL, form, and cookie variables to be displayed at the bottom of every template.

Show

Processing Time Causes the time in milliseconds used to process a page to be displayed at the bottom of every template. If you enable the Detailed view sub-option in Cold Fusion 4.5, the time to process a page will be broken down by individual pages used to build the complete page. If you enable this sub-option, you will need to restart the ColdFusion server process to cause it to take effect.

Show

SQL and Data Source Name Causes the data source name and SQL statement to be displayed at the bottom of messages about database query errors.

Show,

Query information Displays the SQL statement, processing time, and record count bf every query in a template at the bottom of the template.

Display

the template path in error messages When this setting is enabled in Cold- Fusion 4.5, error messages will include the path of the template. This is useful for debugging but poses security concerns because it exposes information about the structure of the Cold Fusion server to users who view error messages. Care should be taken in using this option. Figure 35.26 shows a template being displayed with Show Variables, Show Processing Time, and. Show Query Information enabled. Of course, this type of information is useful for Web developers but need not be displayed for every user of your Web site. By default, all users will receive the debugging information at the bottom of pages unless you explicitly restrict this information to a selected group of IP addresses. Then, only users connecting from the addresses will see the data. To do this, simply add IP addresses to the list in the green box at the bottom of the screen.

Posted on November 17, 2015 in ClodFusion Administration

Share the Story

Back to Top
Share This