Update logging to use Resource API