Migrate to new logging API.