Chapter 10
Server Utilities

[p]This chapter documents the [code]Utility[/code] section in Server Administration, which provides the administrator with tools for managing and maintaining the Lasso Professional Server server. This chapter describes the following: [/p]

SQL Browser

[p]The [code]SQL[/code] section provides a Web-based interface that allows one to issue SQL queries to the SQLite databases which store the settings for the master site or any of the child sites. [/p]

Issuing SQL Statements

[p]The [code]SQL Browser[/code] page is where SQL statements can be entered. The results of the query will be presented at the bottom of the page with one column for each field that is returned. The results could contain actual field data from a database search, or could contain synthetic field data which is generated by the database in order to format the results of various SQL statements and functions. [/p]

Figure 1: SQL Browser Page

To issue a SQL statement:

  1. Select a site from the [code]Site[/code] pull-down menu and a database from the [code]Database[/code] pull-down menu.
  1. Enter a SQL query in the [code]SQL Statement[/code] field.

SQL Statement History

[p]The last ten statements entered into the [code]SQL Statement [/code]field will be displayed in a pull-down menu that appears to the right of[code] History[/code]. In order to issue a statement stored in the [code]History[/code] pull-down menu, simply select the statement from the pull-down menu, and it will automatically appear in the [code]SQL Statement[/code] field. Then select [code]Issue SQL Statement. [/code][/p]

SQL Export

[p]Selecting the Export area in the sidebar allows the results of a [code]SELECT[/code] statement to be exported. Setting one or more options and then selecting Export Results will result in a text file being sent to the browser containg the current result set. [/p]

SQL Options

[p]Selecting the[code] Options[/code] area in the sidebar allows the following options to be set: [/p]

Errors

[p]The [code]Errors[/code] section allows the administrator to view and delete errors, warnings and details that have been logged both internally in Lasso Professional Server and via the [code][Log][/code] tag, as well as set global logging options. For more information on the [code][Log][/code] tag, see the Files and Logging chapter in the Lasso 8. Language Guide. [/p]

[note][b]Important: [/b]Configuring error logging in Server Administration is not the same thing as configuring page-level error handling, such as for syntax errors and security errors. Page-level error handling is described in the Error Reporting chapter of the Lasso 8.5 Language Guide. [/note]

Lasso Errors

[p]The [code]Lasso Errors[/code] page lists all errors and system messages stored in the [code]lasso_global[/code] database. Errors and system messages can also be deleted within this interface. [/p]

Figure 2: Errors Page

[p]The[code] Lasso Errors [/code]page contains a list of all error messages received by their date, time, level, and message. The list is navigable via the[code] Prev[/code] and [code]Next [/code]buttonsin the sidebar. [/p]

Filtering Messages

[p]The[code] Level[/code] pull-down menu allows messages to be filtered by level, which includes [code]Critical Errors[/code], [code]Warnings[/code], [code]Details[/code], [code]Action Statements[/code], and [code]Deprecated[/code]. Each error level is described individually in the following Error Log Setup section. Individual Lasso page and database errors are not logged here, but are rather controlled using the [code][Error…][/code] tags. For more information, see the Error Control chapter in the Lasso 8.5 Language Guide. [/p]

Deleting Messages

[p]Selecting one of the[code] Delete All Errors [/code]button deletes all errors either in the current selected category or in the entire queue [/p]

Error Log Setup

[p]The [code]Setup[/code] page allows the administrator to set global logging options for Lasso Professional Server. These logging options are not limited to errors, and any feedback that occurs within the Lasso Service console can be logged for display in the [code]Lasso Errors[/code] page. [/p]

Figure 3: Error Setup Page

[p]The [code]Error Setup[/code] panel allows the administrator to set unique log routing for the five log levels: [/p]

  1. [note][b]Note: [/b]The _Errors table will store a maximum of 10,000 records. Once this limit has been reached, the oldest records will automatically be deleted. [/note]
[p]Options are changed by checking or unchecking the desired values in the [code]Error Setup[/code] panel and selecting the [code]Update[/code] button. The [code]Reset[/code] button returns all options to their default values. Selecting the [code]Refresh [/code]button reloads the[code] Setup[/code] page with its currently stored values. [/p]

[note][b]Note: [/b]For information on how to programmatically log custom data to the logs described above, see the Files and Logging chapter in the Lasso 8.5 Language Guide. [/note]

Threads

[p]The Threads page allows the threads that are currently running in Lasso Server Administration to be viewed. One thread always represents the page load which is generating the threads display. The only thread that will usually be running is the SQLite sessions manager. [/p]

Figure 4: Threads Page