Logging
log
Prints log messages to GUI Log widget or console. Can print messages in different text colors and highlight object representations.
Example
log('message') for new log entry
log.red('red message') for log entry printed in red color
log('{call} received {msg}', call=call_function, msg=some_msg)
for log entry with highlighted object representations.
__call__
Print log message.
Parameters:
-
text(str | Any) –Log entry to print. Use
.formatstyle string to insert kwargs -
args(Any, default:()) –Optional arguments to
.formattext with -
kwargs(Any, default:{}) –Optional arguments to
.formattext with
inputs, outputs, messages and callable arguments are highlighted.