Drupal 8 logger example

Submitted bybarnettech onTue, 08/31/2021 - 10:23
 \Drupal::logger('ipc_order_sync')->notice('Adding the following order to the enqueJob @order_id
         with transaction id of @transaction_id',
          [
            '@order_id' => $order['order_id'],
            '@transaction_id' => $order['transaction_id'],
          ]);