From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DC8ABA0524; Fri, 5 Feb 2021 17:11:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FF3240682; Fri, 5 Feb 2021 17:11:06 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 56D854067B for ; Fri, 5 Feb 2021 17:11:05 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id f63so4606924pfa.13 for ; Fri, 05 Feb 2021 08:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Uil44DNLVhoFOgxX/jkAkTU941AKPTAiFoKd/0S16hs=; b=W8DFDIJ4XriJLht8rXMrQt5ONsS8PxcpNc1MC0H5M2IorhYHE7kBeFMRD2wM2igZ5W 0RMcmfRXZTtpQsQpyEu+uxnZMh2qPmINrjVqeeK45mT898p3MEfJFxUs3F9hfupN8ktu kCZ1IrQciZF2MkLzvTRM0D2hPJS+3GFzAMpYDFqqjuKaRZsTvo1c4kqJ2iRhqKA8jV6a jfK8NuiyFnxIMDgOAW2+fhiNNaWsnwuTw9o+tO9OHEja4Z0jaGIrIVjlDlKBFWvzAzdF bj5dM+Cx5T8JhW1COJyj6GB+VcWEbiKzzAZHW4g59Je8ERDQAiI7jrECJTyeDeqtPg/m SH0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Uil44DNLVhoFOgxX/jkAkTU941AKPTAiFoKd/0S16hs=; b=qIHOZGOLA/NNqxuRMdDiKCrchLqQsziqsi8+0gB4CTnl//OHUA6wWCuCXN66AxJk7p wye/N7ugDzxd/3NYzNxCd+WcvZq20n3DJ3DZLo2MkjxqoOvNJwyF1NgVSS7zP+Efp0fT 5BzkNZvtt1OtZPMACMBuYD0yMzXVkuMEY65wWXWDYEELVHKwGfQhj+2mE25FBk83HUl8 dT8vPtHtrD0EqvUBjSP1oinYMPzd+ZCWoPO0onZpelLSgGeJ2E7qx4PvNX82jOsqOPVd g1eukbhHLmR2fbpJbBEPA3+BvBaHewr179dKg4y678YXw8PoxTNamUs/i1iOJalHGzXu K7Pg== X-Gm-Message-State: AOAM532ZvaiUUFm9oZ4sTyqPA0MNXXs5wAUgGw/f6TBE6wYnaPTiqgnu tklgfyBWJ5LgGmiG1+BXU3KtvA== X-Google-Smtp-Source: ABdhPJzS/FKD8PX7WXqjSSlvRh1u8bb+EocOGJU6RnIbZCypmXoJy4VIyEVvu2izmKYRWx55aPaxug== X-Received: by 2002:a63:c84a:: with SMTP id l10mr5011082pgi.159.1612541464426; Fri, 05 Feb 2021 08:11:04 -0800 (PST) Received: from hermes.local (76-14-222-244.or.wavecable.com. [76.14.222.244]) by smtp.gmail.com with ESMTPSA id v26sm9003453pff.195.2021.02.05.08.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 08:11:04 -0800 (PST) Date: Fri, 5 Feb 2021 08:10:56 -0800 From: Stephen Hemminger To: David Marchand Cc: Li Feng , Dmitry Kozlyuk , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam , dev , Feng Li Message-ID: <20210205081056.32c69647@hermes.local> In-Reply-To: References: <20210205112433.1681853-1-fengli@smartx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] log: support custom log function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, 5 Feb 2021 12:55:48 +0100 David Marchand wrote: > On Fri, Feb 5, 2021 at 12:25 PM Li Feng wrote: > > > > Currently, the dpdk log is out to stdout/stderr and syslog. > > We should support to output the log to another please, e.g. file or > > glog. > > Why not use rte_openlog_stream() / rte_log_get_stream() ? Agree, I have used rte_openlog_stream several times to do this.