See https://github.com/hibernate/hibernate-orm/pull/438: discusses issues with logging performance involving debugf and tracev in loops.