5 * Install, update and uninstall functions for the dblog module.
9 * Implements hook_schema().
11 function dblog_schema() {
12 $schema['watchdog'] = [
13 'description' => 'Table that contains logs of all system events.',
18 'description' => 'Primary Key: Unique watchdog event ID.',
25 'description' => 'The {users}.uid of the user who triggered the event.',
28 'type' => 'varchar_ascii',
32 'description' => 'Type of log message, for example "user" or "page not found."',
38 'description' => 'Text of log message to be passed into the t() function.',
44 'description' => 'Serialized array of variables that match the message string and that is passed into the t() function.',
52 'description' => 'The severity level of the event; ranges from 0 (Emergency) to 7 (Debug)',
57 'description' => 'Link to view the result of the event.',
62 'description' => 'URL of the origin of the event.',
67 'description' => 'URL of referring page.',
70 'type' => 'varchar_ascii',
74 'description' => 'Hostname of the user who triggered the event.',
80 'description' => 'Unix timestamp of when event occurred.',
83 'primary key' => ['wid'],
87 'severity' => ['severity'],