Updates on Robocorp Code and robocorp-log
Updates on Robocorp Code
- The logging from
robocorp.tasks/robocorp.logis now integrated directly into VSCode (ROBO TASKS OUTPUTview). - Note: Requires
robocorp.tasks 2.1.2,robocorp.log 2.3.0andRobocorp Code 1.7.0. - Elements which have a location can now be clicked to open the related file directly inside of VSCode.
- The terminal view can now also show entries logged from
robocorp.log debug|warn|info|criticaland not just stdout/stderr.
Other noteworthy changes in Robocorp Code:
-
Fixed issues in
Run Task/Debug Taskcode lenses (launchingrobocorp.tasks): -
Robot environment properly used when robot is available.
-
The input work item is properly selected when available.
-
If multiple entry points in the same file were available the selected one will be run.
-
If a
robot.yamlhaspreRunScriptsthey'll be run prior to launching.
Noteworthy changes in robocorp.log:
-
Added
robocorp.log.debug(so, there's one more level available to log messages). -
It's possible to filter log levels by using
setup_log(log_level='debug|info|warn|critical')(so that log levels filtered out won't even be added to thelog.html). -
It's possible to also redirect to
sys.stdoutorsys.stderrthe messages added with log.debug, log.info, log.warn and log.critical by usingsetup_log(output_log_level='debug|info|warn|critical')along withsetup_log(output_stream={'debug': 'stderr'})(note that the current default is just redirectingcriticalcalls tostderr).