Skip to content

Log

Description

A log record of an event or change in the graph.

Label

:Log

Properties

PropertyDescriptionType
idThe unique identifier of the log record (uuid)string
levelThe level of the log record (e.g. INFO, WARN, ERROR)string
messageThe message of the log recordstring
actionThe action of the log record (e.g. EDIT, DELETE)string
createdBythe person or process that created the nodestring
createdDatedateTime
modifiedBythe person or process who last modified the nodestring
modifiedDatedateTime

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

Confidential. For internal use only.