如何使用 admin/reports/dblog 中保存的消息创建数据库?

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

我想在数据库中创建一个 table,其中包含消息列和 admin/reports/dblog 上消息列的值...有人可以帮助我吗?或者从数据库中获取消息,但在数据库中,消息带有分隔的变量:/

使用 function hook_watchdog(array $log_entry) { },其中 $log_entry 是一个包含您需要的所有日志数据的数组。

阅读更多:https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_watchdog/7