Added AngularJS support to override $log service