logMessage |
Type | property |
Dictionary | LCS |
Library | LiveCode Script |
Syntax | set the logMessage to <handlerName>
|
Summary | The name of the handler that is called by the log command.
|
Introduced | 9.5 |
OS | mac, windows, linux, ios, android, web |
Platforms | desktop, server, mobile |
Example | on preOpenStack
if the uBuildMode of this stack is "release" then
set the logMessage to empty
end if
loadResources
end preOpenStack
command loadResources
log "loading resources"
end loadResources
on log pInfo
put pInfo
end log
|
Values | Name | Type | Description |
---|
Value | | The logMessage is the name of the handler called by the log command. The
default logMessage is log . If set to empty then the log command does not
invoke any handler or evaluate parameters, therefore, allowing for many logs to
be added to scripts for development and an easy low-cost method to turn the
logging off for a release build. The logMessage may be set to any handler name,
however, if the handler is not in the message path then use of the log command
will throw a can't find handler error.
|
|
Related | Command: log, put
Message: msgChanged
|
Description | The name of the handler that is called by the log command.
|
Tags | debugging |