Skip to main content

Interface: LogEntry

Defined in: areas/reports/reports.ts:21

One event in a course's logs, as the logs report lists it.

Properties​

PropertyTypeDescriptionDefined in
activityId?number-areas/reports/reports.ts:36
componentstringThe component's and the event's names, in the site's language ("Forum", "Course module viewed").areas/reports/reports.ts:38
contextstringWhere it happened, as Moodle names it ("Forum: News"), and the activity when it was one.areas/reports/reports.ts:35
descriptionstringMoodle's description of the event (in English, as events write it).areas/reports/reports.ts:41
eventstring-areas/reports/reports.ts:39
ip?string-areas/reports/reports.ts:44
originstring"web", "cli", "ws"…areas/reports/reports.ts:43
realUserId?numberWho was really logged in, when someone acted logged in as userId.areas/reports/reports.ts:30
relatedUserId?numberThe person the event was about (graded, enrolled, messaged…), when any.areas/reports/reports.ts:32
relatedUserName?string-areas/reports/reports.ts:33
time?stringWhen it happened (ISO 8601); absent when the site's date format couldn't be read back.areas/reports/reports.ts:23
timeTextstringThe time as the report shows it, in the site's language.areas/reports/reports.ts:25
userId?numberWho did it; none for an event without a user (the system's).areas/reports/reports.ts:27
userNamestring-areas/reports/reports.ts:28