log enhancement and angular js