openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* `phosphor-logging` APIs (RFC)
@ 2021-07-27 20:24 Patrick Williams
  2021-07-28  5:52 ` Andrew Jeffery
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Williams @ 2021-07-27 20:24 UTC (permalink / raw)
  To: OpenBMC List

[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]

Greetings,

There have been discussions before on this mailing list about the APIs present
in phosphor-logging and some of the shortcomings they have.  I've implemented a
new API, inside phosphor-logging, that I think resolves the issues discussed
here and in some offline forums.

If you have an interest in the logging APIs, I would appreciate any feedback you
may have.  If there are additional issues with the APIs that I might have
missed, please feel free to let me know and I'll see what can be done about
resolving them.

lg2: introduce motivation and API
    https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-logging/+/45310
lg2: initial implementation of C++20 structured logging
    https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-logging/+/45311

The main highlights of what I attempted to fix are:
    - Verbose and clumsy API for previous `logging::log`.
    - Poor compile-time identification of certain (common) issues.
    - Source location data is invalid (issue openbmc/openbmc#2207).
    - Useful data is missing from `journalctl` resulting in people working
      around it by generating strings with `fmt` et.al.
    - No logging present when running on a TTY.

-- 
Patrick Williams

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-08-03  4:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 20:24 `phosphor-logging` APIs (RFC) Patrick Williams
2021-07-28  5:52 ` Andrew Jeffery
2021-07-28  6:25   ` Patrick Williams
2021-07-28 23:34     ` Andrew Jeffery
2021-07-29  2:53       ` Patrick Williams
2021-08-03  0:27         ` Patrick Williams
2021-08-03  4:07           ` Andrew Jeffery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).