option to turn logging on or off for php gateway script