From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 36BC59AE1 for ; Tue, 10 May 2016 16:46:16 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 10 May 2016 07:46:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,604,1455004800"; d="scan'208";a="976690457" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.87]) ([10.237.220.87]) by fmsmga002.fm.intel.com with ESMTP; 10 May 2016 07:46:14 -0700 To: SAKTHIVEL ANAND S , users@dpdk.org References: From: Ferruh Yigit Message-ID: <5731F435.8090707@intel.com> Date: Tue, 10 May 2016 15:46:13 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-users] DPDK logs enable X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 14:46:16 -0000 On 5/10/2016 3:10 PM, SAKTHIVEL ANAND S wrote: > Hi > > Any idea, how to enable debug logs for DPDK applications.i have added these > lines one by one in the main file. > 1. #define DEBUG > 2.rte_set_log_level(DEBUG) > 3.rte_set_log_type(PMOD,1) > > also while run the APP, i have added " --log-type 8 ", but i didnt get > expected logs. Can some one point me, what did i missed. or how can enable > DEBUG LOGS. > There is a build time configuration option, CONFIG_RTE_LOG_LEVEL, it became default to RTE_LOG_INFO recently, please update it to RTE_LOG_DEBUG to get debug messages. With optimization enabled, CONFIG_RTE_LOG_LEVEL causes log code lower than defined value optimized out, so setting runtime log level lower than CONFIG_RTE_LOG_LEVEL doesn't work. Regards, ferruh