Migrated all logging over to the new function.