This is the coolest trick when you’re creating debug logs and want to quickly see the record you’ve just saved.
log.debug("s_rec_type : i_rec_id", s_rec_type + " : " + i_rec_id);
This will generate a link in the logs to Sales Order with internalid 304056:
log.debug('newly created sales order', 'salesorder : 304056')