Hi Nabil,
I assume that the log4j.properties file is not setup as required.
While INFO level messages should always be logged, you might wanna change it (for a test) to
logger.debug("Processing the query");
and then modify the file (as outlined in "Custom Monitor Troubleshooting")
..
To change the log level to DEBUG mode, in <SiteScope root
directory>\conf\core\Tools\log4j\PlainJava\log4j.properties, change ${loglevel} to DEBUG in the
following paragraph:
# Custom monitors category
log4j.category.CustomMonitor=${loglevel},custom.monitor.appender
log4j.additivity.CustomMonitor=false
save the file, wait two minutes, and then execute the monitor again.
The messages can be found in the file <SiteScope root directory>\logs\custom_monitors\custom_monitor.log.
Unfortunately the plain existance of the file doesn't mean that all works as expected ...
Greetings
Siggi