Oct 22, 2020 in Drupal 8

Loggin is very important. These snippets need to be used, be as precise as possible.

\Drupal::logger('my_module')->alert($message); // Alert 
\Drupal::logger('my_module')->info($message); // General info
\Drupal::logger('my_module')->debug($message); // Debug

 

Comments