switch logging to use angular's $log service