LOGERROR: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 20: | Line 20: | ||
<!-- QB64 = a version or none, QBPE = a version or all, Platforms = yes or no --> | <!-- QB64 = a version or none, QBPE = a version or all, Platforms = yes or no --> | ||
<gallery widths="48px" heights="48px" mode="nolines"> | <gallery widths="48px" heights="48px" mode="nolines"> | ||
File:Qb64.png|''' | File:Qb64.png|'''none''' | ||
File:Qbpe.png|'''v4.0.0''' | File:Qbpe.png|'''v4.0.0''' | ||
File:Apix.png | File:Apix.png | ||
Line 27: | Line 27: | ||
File:Osx.png|'''yes''' | File:Osx.png|'''yes''' | ||
</gallery> | </gallery> | ||
<!-- | <!-- additional availability notes go below here --> | ||
Latest revision as of 22:17, 7 May 2025
The _LOGERROR statement writes a log message at the Error level with an accompanying stacktrace.
Syntax
- _LOGERROR message
Parameters
- message is a string to write to the log output.
Description
- See the page on the Logging system for more detailed usage information.
- Log messages at the Error level include a stacktrace at the point of the log statement which lists the subs and functions that were called to ultimately reach that log statement, this information can be useful for debugging errors.
- Stacktraces originating from a _LOGERROR statement will only include the names of QB64 SUBs and FUNCTIONs (detonated with a "(QB64)" after the name). Stacktraces originating from the QB64 internals will also include the names of C++ functions.
Availability
Examples
- Example 1
- Writes a log message at the Error level
_LOGERROR "This is an error message" |
See also