[#1751] Avoid logger to format string to improve performance