Add log.error

Aris, can u merge this.

Thanks.