open/close syslog with each statement to preserve log level
settings in other code paths; support php 5.3 in default logging
function