Can't get a Redirect Hook to Fire I'm attempting to use hook_redirect_alter() as described in redirect.api.php.

I created my_module.module and entered the hook as: function my_module_redirect_alter($redirect) To test I just entered a drupal_set_message and attempted to write a notice to the log but I can't seem to get it to actually fire. 

function my_module_redirect_alter($redirect) {
  $message = "redirect_alter worked!";
    \Drupal::logger('my_module')-&gt;notice($message);
}


What am I doing wrong here? Am I misunderstanding this hook?
Good afternoon.

1) install the devel module.

2) Install the modules, devel, kint.

3) change your code for the following:

function my_module_redirect_alter($redirect) {
   dpm($message = "redirect_alter worked!");
   kint($redirect);
}


4)  try to perform a process such as updating a node and when redirecting, you must show the messages.

Note: dpm() and kint() are functions of the devel module to inspect a variable