private void LogWithLevel(LogLevel logLevel) { Apm.Agent.Config.LogLevel = logLevel; logger.LogError("Error log"); logger.LogWarning("Warning log"); logger.LogInfo("Info log"); logger.LogDebug("Debug log"); }