How I could create a db with the messages that are saved in admin/reports/dblog?

29 views Asked by At

I want to create a table in the db with the column message and with values from column message on admin/reports/dblog...Could someone help me? Or take the message from the db but in db the messages are with separated variables :/

1

There are 1 answers

0
Axel Stone On BEST ANSWER

Use function hook_watchdog(array $log_entry) { } where $log_entry is an array with all the log data you need.

Read more: https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_watchdog/7