I am developping a new Custom Database monitors and this is my first time. The documentation and examples state that in order to enable debugging and writing to a log, I have to declare a variable:
var logger = myContext.getMonitorLog();
then I write to the log using:
logger.info("Processing the query");
so the log <SiteScope>\logs\custom_monitors\custom_monitor.log should have the entry: "Processing the query"
but it doesnt. Is this the right process? am I missing a step somewhere? the log exists but it has nothing in it.