LassoScript Utility
Basics Browse Detail

[Log_SetDestination]

Tag Link [Log_SetDestination] Category Administration
Type Process Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type None Security Admin
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

The [Log_SetDestination] tag is used to change the routing of error messages to different locations. Critical error messages, warnings, and detail messages can each be routed to the Lasso Service console, the errors table of the site database, or to the LassoErrors.txt file which is located in the same folder as Lasso Service.

Note: These preferences can also be configured in Lasso Administration in the Monitor > Errors > Setup section.

The first parameter of the tag is the level of error message to be routed. These include:

Log_Level_Critical
Log_Level_Warning
Log_Level_Detail
Log_Level_SQL
Log_Level_Deprecated

Subsequent parameters should specify where to route the log level. Multiple destinations can be specified separated by commas. Destination codes include:

Log_Destination_Console
Log_Destination_Database
Log_Destination_File

This tag can only be used by the global administrator. An [Auth_Admin] tag can be used to authorize this tag in a format file.

Syntax

[Log_SetDestination: Log_Level_Warning, Log_Destination_Console, Log_Destination_File]

[Log_SetDestination: Log_Level_Critical, Log_Destination_Console, Log_Destination_File, Log_Destination_Database]

[Log_SetDestination: Log_Level_Detail, Log_Destination_Console]

Parameters

Required Parameters
Log Level The log level which is to be routed.
Optional Parameters
Log Destination The destination for the log level. Multiple destinations can be specified.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.