From patchwork Thu Jan 2 21:23:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Sommer?= X-Patchwork-Id: 54914 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 773B9E77188 for ; Thu, 2 Jan 2025 21:23:41 +0000 (UTC) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.129]) by mx.groups.io with SMTP id smtpd.web11.17737.1735853017642853145 for ; Thu, 02 Jan 2025 13:23:38 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@navimatix.de header.s=selector1 header.b=Z7P8kW6q; spf=pass (domain: navimatix.de, ip: 40.107.21.129, mailfrom: joerg.sommer@navimatix.de) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ve/w9TEncTKMhi+YuvVqWgYXyU5zua1TCxrLHBW/6EeWQ256Kb7ZR7W0KLD1ETFQ8NHv7dQEibxxB1OZ2X4umYMb0O5KIwOMyPY6tGbOH1yhWEyKDuCEUULbFytz+mywFOrTpP04V2vTVsuhNw5GE7VAQtlkwg9nfBIDaLlY1IlJF/MkgxfIe0bgEjCtlpwyOnZbzgDJ9r0sGaaQP/UMUOaltd4mWkC42lkcz9oRAB4EtWUepSr+KEKx+pDCnP5adqsCTXEqzg4N44gpDa79CRPN0RwSyvCNTLDPiSI/FlQ+KQKMo6KNZcWuY45wWrNZCddLDLnJsNo1Vsfy4CQhBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=m+DC9qplzYfBoETkeyGyhPvg2Bm6ivse+ZkJhQxSCbg=; b=qPUNs5h9HYCICrzms4pjtWx0CHZU2wp1xssN7TVBMAOT1HXR8Y1x2vXSs5MK4IXE4Q4b59QTKfmeYZW4TUgi8y1d/y4h2mIGSE3oev93CFfbDFZWvEspBMvvEKnY88hhNti2mPqz4k2sXVNOD8OySJoK9ejEdxXnGHC4ucrYYZmTOzRFMu2yC9pvMbWIU7qpmvcfPdxORc/csZpHxMzb53jDPTRQmeSvN0u7XUMkNgjbyPs/XGaQVKu/gNcBnr+gJDDVdS1xwlAXsNbW1Hme3ZXqpv6vdjIt36X7ll63xAlDtd43CKrLCLpfu65+ATEwbXDCtnX5epgQnsXHtG2Wwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=navimatix.de; dmarc=pass action=none header.from=navimatix.de; dkim=pass header.d=navimatix.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=navimatix.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m+DC9qplzYfBoETkeyGyhPvg2Bm6ivse+ZkJhQxSCbg=; b=Z7P8kW6qb/5SFOwg9QInnPgojVOW51gnKQHxFqOBjIvZ0HiWC4W962mTcr5mWrPJkgzcnLP9XFe3M+91r0bE7VNcBahoZpjbBk+Nl1faxAU/p27JgNLm+A/lHR7ZIpsUXZeJxjXS45mxfTK0u4PyL2Dj03/+C0ycx8+4gigAk8o= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=navimatix.de; Received: from DU2PR01MB8293.eurprd01.prod.exchangelabs.com (2603:10a6:10:2d4::5) by AS8PR01MB7749.eurprd01.prod.exchangelabs.com (2603:10a6:20b:2a8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8293.20; Thu, 2 Jan 2025 21:23:29 +0000 Received: from DU2PR01MB8293.eurprd01.prod.exchangelabs.com ([fe80::d520:1b9e:a30e:69a7]) by DU2PR01MB8293.eurprd01.prod.exchangelabs.com ([fe80::d520:1b9e:a30e:69a7%4]) with mapi id 15.20.8314.013; Thu, 2 Jan 2025 21:23:29 +0000 Date: Thu, 2 Jan 2025 22:23:27 +0100 From: =?utf-8?b?SsO2cmc=?= Sommer To: bitbake-devel@lists.openembedded.org, docs@lists.yoctoproject.org, joerg.sommer@navimatix.de CC: docs@lists.yoctoproject.org, =?utf-8?b?SsO2cmc=?= Sommer Subject: [PATCH 1/2] doc/logging: small clean-up and name environment Message-ID: <2bf2a340cbf86391ae6722739f750f9d44f550b3.1735852948.git.joerg.sommer@navimatix.de> X-Mailer: git-send-email 2.45.2 Content-Disposition: inline X-ClientProxiedBy: BE1P281CA0343.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:7d::12) To DU2PR01MB8293.eurprd01.prod.exchangelabs.com (2603:10a6:10:2d4::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR01MB8293:EE_|AS8PR01MB7749:EE_ X-MS-Office365-Filtering-Correlation-Id: a257d85f-769d-4ac0-e611-08dd2b73b396 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: T0v8h1GGLIatdevIVyLlTGa7daBdf21v5RFo8rnI+3OVl2kqSBh1M1w/jvyyD29k2ElP9gOctNNbKNQFaHa4rYkZoKaxepNH35tzveejGEy/dgKkbQgdFyKaGVDTC9ivCitP0wvM0QX3ngRTfhTQJQ8dUy88u9LUqvcxzSOlGZbRi6KUa13IBRdogOrKmsrMMuVsyNKmHloIe+NZJk9r3dO+yoStPd3LdxJm6rWhmyCvl6HSOo9P7B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veqN7EqSDKa2Pl5TU6v4TO/KShGCf+2Za1p+7rQGyWys0Z2OY+wh9jQ/UnXeD35Z7y5wM20mPlUIIJS4P X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR01MB8293.eurprd01.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +xEI1EJyFVun90QvNdcigsJjUBZ37B6fMRrhBGo2v25/tvVNZFkkoD5eFzTUeZfviDnGz1ORGXICI1zAC5mgw+l0spCQwUIr77yR4NCkKMRN5OSo1E/ErRQO6s7aKxUYMQUDLW/eIWEAmn3KXN9rfs0BLFkB1xmnCV3GM80qY7aluLoCogwa22CUiRl/iHTxxPdQ5uXIEP/KpDHJcQQxRFf/NIXFYDtCcFTpJ28/6EnYHv+iLOtAcpQCXddKt849WdlY/JY85KbLKrd8YKfs2dW6gs5w/KCwa0aBG7fm2toU5W8XsO8YrLFAY4DH19aZZUH3JWwxzC8UvcuiYOCxCX0NRoYCWBkv/V+kDsijIvccVuPo2g67Aqs+TFi2bLe42xcYDo107MQOwvBQcXrOxEBoAiZKx00rt6p4Gueg+zzV8uH+DePbSU4QCpi/jn49puB24ubMlyRRONRFHVCcWG6z5YXOooXrcladPF7jbKrfmjKXM0yQronRcy/1/r5IcfLSoZHyrAO37S4kV/a3T4KwHQT60iXPgBHeux+g+woeXIOg34XbMziwZYEz/s5gaMWEvY0eKILYB+Ukvm+/4vjNmzdohOUlIwBQkEmt+pfXtQOiV4QLyO4wNNULi89Z0eqh9ztOKaTzQF048UYdKnDBLb4N6sr6617Ksk42jXj075KeL1qNx88DM9XpQEsFang9fmZ0HMyiqnhL7TsPdrJAg1k5GmJ5QWm0i6nXDK+5zgkEMffJ3oagXTt2aeD3IqNzQCdME0hbWsUcSZIQCuoZLgJmb8lggw88Xb97L5V/eVGQX8CU6wPKQ+WOfvpO4eL+k6QbAgLcIuBF1tWsPCg/iADBlH+SQ4En0ro5wEZD1nll/GjUdAo1DzmHK/D+WC9mxi0t3k4MHC1e0omhRImMqOc8VTnS0aTtQNxOKpHjPt8PzxX0+LA98vj0A4kvn5ybRpuYOUPWW8s7b9PLj0m9Du4zXXWSVKOROZ1XgAlFhHct8duPxldhLE49Op51Qrn+8ULc2EqNn/G6L7V9BBZj74N6x272s3Lnus2vnlkaH+PnWhbjharNZubyNTmQXMDHi/QXRvcrWjUs+mrfY4P+UFJxpRqh8NrlcPO7a5mLOIs0hWnfN1OC6UHVuCpwQeJqwOjVXPuHcVCS2TxpvIJoCTtg3IuSIvalmuISfALSFvf7FDZs3RsFu+ui38ZNWVGA2mIuDjbrharR3YElRdJWR1uZHaqzzm9wVJThZ8zFl5SlJpOKqExM9TMQo1NiwFv776SuEh5AeZUDLWowhnx1yNlxqgS0/6OHmcejRYJI555pEFAK+mhPlPezRNiygvcspeDT9dOQGtlYs5FsHPfMBZ/SG/nQRKaH4ZHX2dkrTTpJtONTlmykoeBNkOHiLkfcXQsgzzbal9p2bvGLytw6PlG4cnDvCC2HS6iuQGGGAuv/ApNoAhcThCXPxPmjMeV4Ig1TU4AoHi8tc4z5Yxcv0DCvjaY9eTY1hICMoH2hHeCoWGNpgCPTFSG8I4QIsZvxX5BKWh5AT1sSxzkVyNzu3H4qY/adrD8UF4Ds2b/gXr+lKODoDrc/2eV5DrMxjU48JRJsFQvfxmgz6XUs4Q== X-OriginatorOrg: navimatix.de X-MS-Exchange-CrossTenant-Network-Message-Id: a257d85f-769d-4ac0-e611-08dd2b73b396 X-MS-Exchange-CrossTenant-AuthSource: DU2PR01MB8293.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2025 21:23:29.1985 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: c87b4f54-b992-4813-8f3f-4a876324197f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: s8BQtBwjLLbS/82rZcd5qXBVQacZw32PsIkEA7mlx3ZdEI3BygZWyTkqeJ3q1zxxECGM6IramTX2+F/y0nkNzxyW2F4L9KLzzoSttBHrTGE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR01MB7749 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 02 Jan 2025 21:23:41 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/6057 From: Jörg Sommer The variable *BB_LOGCONFIG* is part of *BB_ENV_PASSTHROUGH_ADDITIONS* in /scripts/oe-buildenv-internal and can therefore be passed as environment variable. Signed-off-by: Jörg Sommer --- .../bitbake-user-manual-execution.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst index d58fbb32e..0e20d5933 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst @@ -671,7 +671,7 @@ logging configuration is merged using the following rules: - Any keys defined in the ``handlers``, ``formatters``, or ``filters``, will be merged into the same section in the default configuration, - with the user specified keys taking replacing a default one if there + with the user specified keys replacing a default one if there is a conflict. In practice, this means that if both the default configuration and user configuration specify a handler named ``myhandler``, the user defined one will replace the default. To @@ -707,9 +707,9 @@ or higher priority to a file called ``hashequiv.log``:: } }, "formatters": { - "logfileFormatter": { - "format": "%(name)s: %(levelname)s: %(message)s" - } + "logfileFormatter": { + "format": "%(name)s: %(levelname)s: %(message)s" + } }, "loggers": { "BitBake.SigGen.HashEquiv": { @@ -723,7 +723,8 @@ or higher priority to a file called ``hashequiv.log``:: } } -Then set the :term:`BB_LOGCONFIG` variable in ``conf/local.conf``:: +Then set :term:`BB_LOGCONFIG` as an environment variable when running +bitbake, or set it in ``conf/local.conf``:: BB_LOGCONFIG = "hashequiv.json" From patchwork Thu Jan 2 21:23:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Sommer?= X-Patchwork-Id: 54913 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B1E1E77197 for ; Thu, 2 Jan 2025 21:23:41 +0000 (UTC) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.129]) by mx.groups.io with SMTP id smtpd.web11.17737.1735853017642853145 for ; Thu, 02 Jan 2025 13:23:39 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@navimatix.de header.s=selector1 header.b=riLO8k2U; spf=pass (domain: navimatix.de, ip: 40.107.21.129, mailfrom: joerg.sommer@navimatix.de) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vOyfPxEKeLS25xDIFcq/EyD+4xON6HWoCLszE8NNYFn47SklmC2uxDj2MiRT4EVh634iHm0aryRAvLHWubXq4TT4B81GAg4zxnieBDigmzE5Er74QedrjGingH3yzdzXE4ocw6OnBKDrs8DRKE1mqc54uFT5v+BCsIva6uDxdncEYSDZQiLmXjsF55aG70UMOeBkEqD5BeN/Ibu8kFgnKsKn/dWORPVloLkNkx2CAe306LU2WTPYEKHQBrrImwOQq1wrZrAXEoTszN2RdPHkjWQ6KoGL+x2aTgM2w9Jigp4DOfoH17MtuYwTXRyGssvP2C2Sc8cPrPH+9vgo819eqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AnRYwfw1drhER3ItUrULIi6D6OYpsE/cHxjR/Nl0kg0=; b=IJ53pZKcjwc0gVZF98Gg0RLD70MaTcKeRrGz+s4NlHcDh9v38C668GZDwKqG1/uvn5U9aaNY3ayEV7vPQBQz1yDlVR+Nb13ASrGktR7+VhCTg+4fRMduyh0DtHa5azAoQbyZdPloVXKI05QaFqj/vixsdXo5kAbQStdYzyOmmV49f731ghqHj3vfqSTMoxUCfcqeQp8kNgUWgwv+hfEaJn17f2+aCAb++QAA5vR8Me9C7/8oYraZOuSIngCh+z60rFRImafDVaaLpuOK+rkf6D/0uOGL3JFs61pEah+RY72H0bMXnNNBDzq9cKBgmnTFDzTeT6qxliVYlwMrrxUk4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=navimatix.de; dmarc=pass action=none header.from=navimatix.de; dkim=pass header.d=navimatix.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=navimatix.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AnRYwfw1drhER3ItUrULIi6D6OYpsE/cHxjR/Nl0kg0=; b=riLO8k2U2Va4isBxb7RAuqApO18/1R5OI7/zfxh+LXGq6Q5U9Yao3ZkZlDhFVEVgim9qrjKAH6Ysg5ojZL33Rtthn2AUConAFliqUYb2hHCmrp76m1slEQ+SG1hrxxKGBsDjIzb+kPjZXGIBjn6qnb4lT8hGOxCVLpHnQyJKC7M= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=navimatix.de; Received: from DU2PR01MB8293.eurprd01.prod.exchangelabs.com (2603:10a6:10:2d4::5) by AS8PR01MB7749.eurprd01.prod.exchangelabs.com (2603:10a6:20b:2a8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8293.20; Thu, 2 Jan 2025 21:23:31 +0000 Received: from DU2PR01MB8293.eurprd01.prod.exchangelabs.com ([fe80::d520:1b9e:a30e:69a7]) by DU2PR01MB8293.eurprd01.prod.exchangelabs.com ([fe80::d520:1b9e:a30e:69a7%4]) with mapi id 15.20.8314.013; Thu, 2 Jan 2025 21:23:31 +0000 Date: Thu, 2 Jan 2025 22:23:30 +0100 From: =?utf-8?b?SsO2cmc=?= Sommer To: bitbake-devel@lists.openembedded.org, docs@lists.yoctoproject.org, joerg.sommer@navimatix.de CC: docs@lists.yoctoproject.org, =?utf-8?b?SsO2cmc=?= Sommer Subject: [PATCH 2/2] doc/logging: convert warn.json to YAML Message-ID: X-Mailer: git-send-email 2.45.2 References: <2bf2a340cbf86391ae6722739f750f9d44f550b3.1735852948.git.joerg.sommer@navimatix.de> Content-Disposition: inline In-Reply-To: <2bf2a340cbf86391ae6722739f750f9d44f550b3.1735852948.git.joerg.sommer@navimatix.de> X-ClientProxiedBy: BE1P281CA0410.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:83::8) To DU2PR01MB8293.eurprd01.prod.exchangelabs.com (2603:10a6:10:2d4::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR01MB8293:EE_|AS8PR01MB7749:EE_ X-MS-Office365-Filtering-Correlation-Id: 460270e2-fbfe-4227-1564-08dd2b73b4d1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: aumsCZnjXdLAkxgAiBJiw8LBw2jFCq0z45IKoJUQiRisXktpFynjYjrUg08ts7He2nY9HQL/lHydReufTyOCTO5WKTLKYfgxY3zvxT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HMnw0eEUuVtogcr9WkD0bZME6y9KUavbJ3WK1ZNuD6N1UuUWDAE5xnABUzDoJcUFZ8KvfMBUnh2InpPgsF7pYhkkSS02Z6sHS0r/YoSrmftFPtRyL3oOV0U5YYMhlr4bQkq8ptdk3noYpLgY7fbf5Z3rGP/3X+ZKgT2WEAjH8gIg7pbTI2bizNSg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR01MB8293.eurprd01.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tI8iDGEobhodqGiG0N3ZlXw7HrFWhC9UuvSUvvmyAxLThCQf3QNnvoU3a/rFxR+6Y1Qf5jP6SAzcUjJ3BxJHgkgsCy0UP0BhG/SiDnJ+haC2PpT9PRakztjmngfkU7uYdwpz2Eq5OlgUB7d8soHBGGMalLY252LFduaQpyH34YpQrWhn3/CHsqrOvrkuIjmN0vW3azc3EirBJfr2gGXiV+OhXgnOMOMCdLe/lsbAXyUSLnMFHn1MZX/RwNad5DSGAjyzwzg0hs0OiAm53r5HLp+voOMhNiM2endhnXuyCyiz/7pJaWSqiSGYZjEY2Enp/74cMcpe0ci9DRBhiPtEaLPmzG9qgT8bB38lm1EATXeQVg42Rs0Q9berGol8X5/CnBEEjKSc0OSPPtIenO17P5//fJL0GVOaqxzVY8Te5QHy0hRhhJ7buZUnmd5MLxGcWoG9xsgM8QsoOuEAkIaaxCd5xWdOY+60SzI97Xa5hL/tlegwoP2JYsbVJeXtIwoyVQrrjZcF71/NFhfNDH40gyhc4e1vWjOAFrBLVnnrmh8pgmrUjMEOSUB2KaQZBHjbWH9cHlf/P4NNH1Uu8arRBcZwjglC5RpDNukX0N+E8EXq8bW7XDdPkwonogACsrI85L+YJzJZuCbYeBm9GDiBXFEFuwFsXvlFAz/r4t3EInvdUifQV/ZP9oRgDILEHLxEekB0cBsv8J3v7cdwcPvnYHUv+O29XTSjfqa0oVq76C8jC64fq4DVeGzUAtI5TWZF3QqLVtag5m7YOAQv5Phk+27o6p9nCQrawpUZ8+ZyciyErn8l3FDPkeRuAqhJHVMfnfN2WDng3T1ArC63YPh7w+QrSYr2wPx1OYHl+IOniF4CWJymxRpOWB6L71S+b5xkMoA4rSGNcG1oS0N3KqS0OrFo3FEpWXUV3yra0dtkUMdhVMTzNGTbITg1+lh4XoxHcZcQDAIjZGk++V90xL1ZM5CvnhHPBSmDx+emMnDR+8JcTVoXEtCiVZpo5jUgMhjsZyKzfjGCLsFpgPxiRNmL0IhLJoaRzt1uBh4En6slD1fcj48j2+DmIEGu9uPVsuF/DAtJ9Q6Fc61DQmzrbUfToJyK9nhImJTe+f//Uus1Ub7mgLwIb+mWALpIprfPUfpQfuy0kTrOEQVB0tJ2ghtSrWT88FoktBbsJQ7zWbEO+cK+om8vbkljqPzvedcNpvtaWKTroYbNq+AIPp9zvG1gpCPXoFwQVtYB4qVfdmlhyMHeoHLIMj59o/OsQ3nkFX/8wpDF9NdTu8iWDMPuVQLeeT3H3O1inLyPUDBnzxI1YBZ94pUiBIPYJBlKVMb0zjmDMeT03WVP5C/hTtllLLQkprSuXDyxwOg8SCM1M6qQAMTIl1hRgJ3df35gacUB987cUH2HLpzoI6tP8N67oCUnobNb0v75Qz85NHOg4Bv34/40PcwpfbuV/3w/b8EEj9e7EtWomPHoucKL0+Iaw14vQjPIdajD5hw0zB36SB58GBuQwYHwgwSuR0NuZrIsXnyasJPtsv6jtKowDTO/qw1V9pLEXpWZNdzcHglOcY8QEsxZZ2KdVgAIYQ6Gu5E0dqgRMq1LrpbBF49pk7A8Y0w7Hw== X-OriginatorOrg: navimatix.de X-MS-Exchange-CrossTenant-Network-Message-Id: 460270e2-fbfe-4227-1564-08dd2b73b4d1 X-MS-Exchange-CrossTenant-AuthSource: DU2PR01MB8293.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2025 21:23:31.2693 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: c87b4f54-b992-4813-8f3f-4a876324197f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JQ+CdCVzBDX0aFO1qtBKZnlP2k6b2ghVErQXEIaV3GcB8w9DOB0vrtp2YVGeJnVwp1uxtz8gQBrjx5j39x0XS/mZ1dLsXAGWgnzFOuBblGI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR01MB7749 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 02 Jan 2025 21:23:41 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/6058 From: Jörg Sommer To give an example how the YAML format can be used, the example of the warnings logger should be converted to YAML. Signed-off-by: Jörg Sommer --- .../bitbake-user-manual-execution.rst | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) Is the @ in front of disable_existing_loggers correct? In https://docs.python.org/3/library/logging.config.html#dictionary-schema-details it's not given. Or can we remove the whole line? At me it works. diff --git a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst index 0e20d5933..99b91ba50 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst @@ -728,35 +728,29 @@ bitbake, or set it in ``conf/local.conf``:: BB_LOGCONFIG = "hashequiv.json" -Another example is this ``warn.json`` file to log all ``WARNING`` and +Another example is this ``warn.yaml`` file to log all ``WARNING`` and higher priority messages to a ``warn.log`` file:: - { - "version": 1, - "formatters": { - "warnlogFormatter": { - "()": "bb.msg.BBLogFormatter", - "format": "%(levelname)s: %(message)s" - } - }, + version: 1 - "handlers": { - "warnlog": { - "class": "logging.FileHandler", - "formatter": "warnlogFormatter", - "level": "WARNING", - "filename": "warn.log" - } - }, + '@disable_existing_loggers': false - "loggers": { - "BitBake": { - "handlers": ["warnlog"] - } - }, + formatters: + warnlogFormatter: + '()': bb.msg.BBLogFormatter + format: '%(levelname)s: %(message)s' - "@disable_existing_loggers": false - } + handlers: + warnlog: + class: logging.FileHandler + formatter: warnlogFormatter + level: WARNING + filename: warn.log + + loggers: + BitBake: + handlers: + - warnlog Note that BitBake's helper classes for structured logging are implemented in ``lib/bb/msg.py``.