Lasso Soft Inc. > Home

[ Log_Warning ]

Method

[Log_Warning] logs a string parameter to Lasso's internal error logs flagged as a Warning message.

By default, the message will only be logged to the console. However, the global administrator can change the routing of errors in the Monitor > Log Book > Settings page in Lasso Administration.

[Log_Warning] should be used to log error messages that affect the operation of your method or type or Web site, but do not prevent it from basic operation. Warning messages are informative and may require that global administrator change settings for full operation of your solution.

  • Syntax
Log_Warning('Message')
Examples
  • Beginner

To log format file errors as Warnings:

This example logs "Out of Memory" errors in a custom solution to Lasso's internal error logs with an error level of Warning.

Code

Error_CurrentError == Error_OutOfMemory ?
    Log_Warning('Out of Memory error occurred while processing page example.lasso')

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft