The MIP Plugin does not execute in background mode

I’m trying to print a MIP log message while it’s running in background mode as is shown on presentation videos. However it doesn’t behave as it should, I can’t see the message that I need plus theres no warning to tell me why I can’t see it and I dont know if it’s runnig or not.

If it helps I’m attaching the my code bellow. If necessary some fixes please let me know.

Follow attach.

If this is a Smart Client plugin it is important to note that per default all logging is turned off.

See - https://developer.milestonesys.com/s/article/debugging-techniques-for-Smart-Client-plugins

You will find links to debugging tips for the other environments in the knowledge base article also, and for each there is notes about logging.

Thank you very much, your reply was of great help.