Added support for logging to log4stuff

The user can set an environment variable to specify the application Id to log their messages to on the Log4stuff service.