Switched to angular's logging service