Updated to new logging API.