Add API key validation
Make environment name optional
Add appName and apiKey validation for log4php appender
Fix log4php appender issue: method call of non-existing object