两种字符串拼接 "Show Time {time}", DateTime.Now vs $"Show Time {DateTime.Now}"
// 在真正输出字符串时进行拼接_logger.LogInformation("Show Time {time}", DateTime.Now);// 提前将字符串拼接好,传入 LogInformation// 无论 Log 等级是否高于 Information 都会执行拼接,性能损耗大_logger.LogInformation($"Show Time {DateTime.Now}");
