Log
Description
A log record of an event or change in the graph.
Label
:Log
Properties
| Property | Description | Type |
|---|---|---|
| id | The unique identifier of the log record (uuid) | string |
| level | The level of the log record (e.g. INFO, WARN, ERROR) | string |
| message | The message of the log record | string |
| action | The action of the log record (e.g. EDIT, DELETE) | string |
| createdBy | the person or process that created the node | string |
| createdDate | dateTime | |
| modifiedBy | the person or process who last modified the node | string |
| modifiedDate | dateTime |
INFO
We understand that createdDate and timestamp are redundant, but we include both for clarity. We may remove timestamp in the future.
Key
id
Relationships
The HAS_LOG relationship connects arbitrary nodes to log entries.
Examples
cypher
CREATE (log:Log {
id: randomUUID(),
action: 'EDIT',
level: 'INFO',
message: 'The first log message',
createdBy: 'system',
createdDate: datetime(),
modifiedBy: 'system',
modifiedDate: datetime()
})cypher
MATCH (log:Log)
RETURN log.action, log.level, log.message
ORDER BY log.createdDate DESC