Wheel IDE

Online demo »

Console

Messages

The console displays the program status. The following messages can appear:

Log levels

There are different log level, the log level indicates the importance of the message. The log levels are:

Some messages trigger the showing of the console panel. You can confige which log level message triggers the showing of the console from the Settings option in the File menu. The default setting to show the console is Error.

Logging

You can log your own messages in the console from your program. There are three methods defined in the Standard module: printN, printS and clearConsole. The printN procedure prints a number, the printS procedure prints a string and clearConsole empties the console.

#include "lib/modules/standard.whl"

proc main()
    printS("Hello console") ; Print a string...
    sleep(2)
    clearConsole() ; Clear the console...
    printS("Number of seconds after sleep...")
    printN(2) ; Print a number
end