Topic on Extension talk:EventLogging/Programming

How to require mw.eventLog?

1
Adamw (talkcontribs)

This guidance is mysterious to me,

> require your schema wherever you need to log events (it will pull in the ext.eventLogging module which contains the mw.eventLog object).

How do I "require" a schema? I've found that mw.eventLog is undefined in my onload handler, so something is indeed missing from my code.

Reply to "How to require mw.eventLog?"