LassoScript Utility
Basics Browse Detail

[Log] ... [/Log]

Tag Link [Log] ... Category Utility
Type Container Source Available No
Support Preferred Version 2.0
Change Unchanged Data Source Any
Output Type None Security Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5, Lasso 2.0


[Log] ... [/Log] logs the contents of the container tags to a specified location. Accepts a single parameter which is the path to a log file or -Window to direct the output to the console window for Lasso Service.



[Log: File Name]

[Log: -Window]


Optional Parameters
File Name The name of the file to which the contents of the container tag should be logged. Either a file name or -Window is required.
-Window Specifies that the contents of the container tag should be logged to the Lasso Service console rather than to a file.


To log page visits to a file:

Use the [Log] ... [/Log] tags. The following example logs information about the current visitor to a log file named visits.txt.

[Log: '/logs/visits.txt']
[Server_Date: -Extended] [Server_Time: -Extended] [Client_IP] [Client_Type] [Response_FilePath] [Error_CurrentError]