The enhanced log knows which command is sent to which data table and indicates the source and output data tables and reports with different colors. The icons can be used to bring the respective window to the front:

Is there a JSL functionality that allows me to talk to the enhanced log?
like
log << list commands(10);
to get the last 10 commands.
or log << list commands("3h"); for the commands of the last 3 hours?
or
log << list commands(data table(dt));
to get all commands which were triggered with target data table dt.