Merge pull request #19525 from eileenmcnaughton/member_soft
[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>
0481e12c
A
14 <html>
15 <type>Number</type>
16 </html>
e2bef985 17 <add>4.4</add>
18 </field>
19 <primaryKey>
20 <name>id</name>
21 <autoincrement>true</autoincrement>
22 </primaryKey>
23 <field>
24 <name>message</name>
25 <title>System Log Message</title>
26 <required>true</required>
27 <type>varchar</type>
28 <length>128</length>
29 <comment>Standardized message</comment>
30 <add>4.5</add>
31 </field>
32 <field>
33 <name>context</name>
34 <title>Detailed Log Data</title>
35 <type>longtext</type>
36 <comment>JSON encoded data</comment>
37 <add>4.5</add>
38 </field>
39 <field>
40 <name>level</name>
41 <title>Detailed Log Data</title>
42 <comment>error level per PSR3</comment>
43 <type>varchar</type>
44 <length>9</length>
414e3596 45 <default>'info'</default>
e2bef985 46 <add>4.5</add>
47 </field>
48 <field>
49 <name>timestamp</name>
50 <title>Log Timestamp</title>
51 <type>timestamp</type>
52 <comment>Timestamp of when event occurred.</comment>
53 <default>CURRENT_TIMESTAMP</default>
54 <add>4.5</add>
55 </field>
56 <field>
57 <name>contact_id</name>
58 <title>Log Contact ID</title>
59 <type>int unsigned</type>
60 <length>11</length>
61 <comment>Optional Contact ID that created the log. Not an FK as we keep this regardless</comment>
62 <add>4.5</add>
63 </field>
64 <field>
65 <name>hostname</name>
66 <title>Log Host</title>
67 <type>varchar</type>
68 <length>128</length>
69 <comment>Optional Name of logging host</comment>
70 <add>4.5</add>
71 </field>
72</table>