Merge pull request #19539 from eileenmcnaughton/repeat_fin
[civicrm-core.git] / xml / schema / Core / SystemLog.xml
CommitLineData
e2bef985 1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Core</base>
5 <class>SystemLog</class>
6 <name>civicrm_system_log</name>
7 <add>4.5</add>
8 <field>
9 <name>id</name>
10 <type>int unsigned</type>
11 <title>System Log ID</title>
12 <required>true</required>
13 <comment>Primary key ID</comment>
14 <add>4.4</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>message</name>
22 <title>System Log Message</title>
23 <required>true</required>
24 <type>varchar</type>
25 <length>128</length>
26 <comment>Standardized message</comment>
27 <add>4.5</add>
28 </field>
29 <field>
30 <name>context</name>
31 <title>Detailed Log Data</title>
32 <type>longtext</type>
33 <comment>JSON encoded data</comment>
34 <add>4.5</add>
35 </field>
36 <field>
37 <name>level</name>
38 <title>Detailed Log Data</title>
39 <comment>error level per PSR3</comment>
40 <type>varchar</type>
41 <length>9</length>
414e3596 42 <default>'info'</default>
e2bef985 43 <add>4.5</add>
44 </field>
45 <field>
46 <name>timestamp</name>
47 <title>Log Timestamp</title>
48 <type>timestamp</type>
49 <comment>Timestamp of when event occurred.</comment>
50 <default>CURRENT_TIMESTAMP</default>
51 <add>4.5</add>
52 </field>
53 <field>
54 <name>contact_id</name>
55 <title>Log Contact ID</title>
56 <type>int unsigned</type>
57 <length>11</length>
58 <comment>Optional Contact ID that created the log. Not an FK as we keep this regardless</comment>
59 <add>4.5</add>
60 </field>
61 <field>
62 <name>hostname</name>
63 <title>Log Host</title>
64 <type>varchar</type>
65 <length>128</length>
66 <comment>Optional Name of logging host</comment>
67 <add>4.5</add>
68 </field>
69</table>