From: Patrick Williams <patrick@stwcx.xyz>
To: Kun Zhao <zkxz@hotmail.com>
Cc: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: Re: phosphor-logging Create API with Resolution
Date: Thu, 4 Nov 2021 04:35:48 -0500 [thread overview]
Message-ID: <YYOpdFQkG+hymMPk@heinlein> (raw)
In-Reply-To: <MW4PR14MB48034DC5EC5E1B30FCF58CE8DC8C9@MW4PR14MB4803.namprd14.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]
On Wed, Nov 03, 2021 at 11:53:17PM +0000, Kun Zhao wrote:
> Hi Team,
>
> We have a requirement to provide the value of Resolution property at the time of log creation with phosphor-logging Create API. But current Create() API doesn’t support Resolution as a parameter, we have to do two steps (create entry, set-property of Resolution of this entry) for it.
> Any suggestions? Modify Create() API or add a new CreateWithResolution() API?
I suspect we're going to have other use-cases come up going forward where other
people want to fill in other properties, so having CreateWithNNN APIs sounds
like it'll start having clutter.
Can we enhance the handling of the AdditionalData field to take fully-qualified
property names and place those in the appropriate property at create time,
rather than placing them in AdditionalData? What I mean by this is that if you
pass a key of "xyz.openbmc_project.Logging.Entry.Resolution" it will place the
value in the ...Entry.Resolution property at creation. Any non-FQPN will stay
in AdditionalData.
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-11-04 9:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 23:53 phosphor-logging Create API with Resolution Kun Zhao
2021-11-04 9:35 ` Patrick Williams [this message]
2021-11-04 20:55 ` Kun Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YYOpdFQkG+hymMPk@heinlein \
--to=patrick@stwcx.xyz \
--cc=openbmc@lists.ozlabs.org \
--cc=zkxz@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.