Writing to standard output for logging is OK during the development process, but the preferred way to log messages in an extension is through RAS logging. RAS logging is advantageous because the file where the data is stored, TWGRas.log, wraps and does not fill up the disk (as the SDTOUT and SDTERR logging do).
The first thing to do is to get an basic understanding of RAS logging. Click here to read about it.
These steps outline the basic process:
Change the code to look like this:
Click here for instructions. Since you added out debug message to the initialization code, you must use the twgras.properties file to enable RAS.
Whenever you modify the extension, you need to redeploy the extension on the IBM Director Server.
Go to the log directory and run:
rasdump > rasdump..txt
Look for the rasdump.txt file and find the debug message.