rename APPPATH to APPROOT. Use Phalcon logger.