LogThisEx
An extension to the LogThis method. Writes to the current local log file a log entry with a text indicating the log level.
Syntax
Log.LogThisEx <id>, <my_entry>, <levels>
Part
<id>
A Long expression, indicating the application or component that wrote the log. For example, Sample Management always uses the same ID (usually 42), and by using a different ID (for example, 1001) in your script, you can identify the log entries that come from your script. IDs less than 1000 are reserved for components.
<my_entry>
A string to be written to the log file.
<levels>
A Long expression that defines the level of the entry. Each log entry can belong to one or more categories. The categories are:
LOGLEVEL_TRACE: Use for debugging.
LOGLEVEL_DEBUG: Use for debugging.
LOGLEVEL_INFO: Use for debugging.
LOGLEVEL_WARNING: An error has occurred, but the program can continue.
LOGLEVEL_ERROR: A more serious error has occurred, but the program can continue.
LOGLEVEL_FATAL: An error has occurred, and the program cannot continue. Use logs with this level to alert the administrator to a problem.
See also