When using System.out.println() you have to run Wowza in stand-alone mode for the message to be output to the console. It will not get written to the logs.
To write to the log file you would need to use getLogger().info(“YOUR-LOG-HERE”);
You could take a look at the ILiveStreamTranscoderNotify and ILiveStreamTranscoderActionNotify interfaces. and dynamically choose your template file. Setup the following event handlers as indicated in this post. Then you can choose the template required by leveraging the liveStreamTranscoder object within the ILiveStreamTranscoderActionNotify.onInitBeforeLoadTemplate event handler as follows: