-1

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 :/

Karmen
  • 238
  • 2
  • 15

1 Answers1

1

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

Axel Stone
  • 1,521
  • 4
  • 23
  • 43