From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Hall Subject: Re: [PATCH 2/6] rte_log.h: add detailed log levels RTE_LOG{FINE, FINER, FINEST} Date: Fri, 13 Nov 2015 14:16:48 -0500 Message-ID: <20151113191648.GG25051@mhcomputing.net> References: <1447397258-27233-1-git-send-email-mhall@mhcomputing.net> <1447397258-27233-3-git-send-email-mhall@mhcomputing.net> <20151113114402.GB15612@bricha3-MOBL3> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from mail.mhcomputing.net (master.mhcomputing.net [74.208.228.170]) by dpdk.org (Postfix) with ESMTP id 4B534C410 for ; Fri, 13 Nov 2015 20:16:49 +0100 (CET) Content-Disposition: inline In-Reply-To: <20151113114402.GB15612@bricha3-MOBL3> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Nov 13, 2015 at 11:44:03AM +0000, Bruce Richardson wrote: > Why 11 log levels - it seems an odd number? > Also, not sure about the {fine, finer, finest} names. My thinking would be to > just start numbering them after DEBUG, so RTE_LOG_L9, RTE_LOG_L10 etc., which > would allow us to add on an arbitrary number of extra log levels as needed. > > /Bruce I based it on this, it worked very well for me in the past. https://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html But happy to name them anything people want and have any number of them people want. I am not religious about the details, just want the feature. Matthew.