From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 12B2AA568 for ; Sat, 20 Jan 2018 15:30:30 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9E85F20AE6; Sat, 20 Jan 2018 09:30:29 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 20 Jan 2018 09:30:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=QQkVZAQcs6seoYiyXyFMgoo+Ha mpJfp7cEBcBYRbXio=; b=mQbLL+u8vUyaggZeXnSheWR5az10pzAX0KQ0n6s0fA q/DkavW0cowo9XgAdjtscioSknChcjrsAqoWfy6DRzK2AABqn4lGiYvJUXzLk5KB YN2UBT79skRzd8I1n2N7njw/vQLD72b5IhK0avO8WZKJx4a/+QPKCE8H5rDV4PMZ Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=QQkVZA Qcs6seoYiyXyFMgoo+HampJfp7cEBcBYRbXio=; b=AR9By29QtrNT2b+uU7Lnp2 pdkHidJgtI3shdKeqa2HmbmIfy6cXpK27lhKSC6r7OAtTaMIcgYHQlwwe12JFdUG UjCMhQZm4j4D6/zpDJNFAi/c+rNpx4669mIhmQfm8xyWhYEA6RTU99BlVcBzyT2c uOITAw1YCRXRySzalRbQ1oyrKd43K61s1S7ZwN8QcnHjAOnh8ieSi+rScj0eliJG OXdrhKnbif7OF4AMg87HGnmxuAoODvEfiWZIE6GuNkY0y+6rBNsd7Quea9X6dpc3 WgxokglGS1DclhSe/558nmt2kf4sHKY0NScq8VZ6nX5405hgqkg1WID4BmMnlHQw == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 45F547E46B; Sat, 20 Jan 2018 09:30:29 -0500 (EST) From: Thomas Monjalon To: Elza Mathew Cc: dev@dpdk.org, wenzhuo.lu@intel.com, jingjing.wu@intel.com Date: Sat, 20 Jan 2018 15:29:53 +0100 Message-ID: <6232706.WoQsgU34jB@xps> In-Reply-To: <1516400350-96747-1-git-send-email-elza.mathew@intel.com> References: <1516400350-96747-1-git-send-email-elza.mathew@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] app/testpmd: change log level at run time X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 14:30:30 -0000 19/01/2018 23:19, Elza Mathew: > @@ -16026,6 +16078,7 @@ struct cmd_cmdfile_result { > (cmdline_parse_inst_t *)&cmd_set_link_down, > (cmdline_parse_inst_t *)&cmd_reset, > (cmdline_parse_inst_t *)&cmd_set_numbers, > + (cmdline_parse_inst_t *)&cmd_set_log, > (cmdline_parse_inst_t *)&cmd_set_txpkts, > (cmdline_parse_inst_t *)&cmd_set_txsplit, > (cmdline_parse_inst_t *)&cmd_set_fwd_list, > diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst > index d8c9ef0..3c55eb6 100644 > --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst > +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst > @@ -505,6 +505,25 @@ When retry is enabled, the transmit delay time and number of retries can also be > > testpmd> set burst tx delay (microseconds) retry (num) > > +set log > +~~~~~~~ > + > +Set the log level for a log type:: > + > + testpmd> set log global|(type) (level) > + > +Where: > + > +* ``type`` is the log name. > + > +* ``level`` is the log level. > + > +For example, to change the global log level:: > + testpmd> set log global (level) > + > +Regexes can also be used for type. To change log level of user1, user2 and user3:: > + testpmd> set log user[1-3] (level) > + > set txpkts > ~~~~~~~~~~ I know that testpmd code and doc are a bit messy, but maybe we can find a better place for this command in the doc and in the code. As it is very generic, I think it should be one of the first commands.