All of lore.kernel.org
 help / color / mirror / Atom feed
* How to ideally fix the log function
@ 2019-07-25  1:05 John Wang
  2019-07-25 11:21 ` vishwa
  0 siblings, 1 reply; 6+ messages in thread
From: John Wang @ 2019-07-25  1:05 UTC (permalink / raw)
  To: OpenBMC Maillist, Yu Lei, venture, mspinler, vishwa

Hi all

I am just curious about how to ideally fix the log function

Currently,error log code location metadata is not useful, link:
https://github.com/openbmc/openbmc/issues/2297

That issue mentioned several solutions,But I am still confused.

The call stack of phsophor::logging:log<>() is like this:

func() -> log<>() -> helper_log() -> sd_journal_send

We need to pass arguments(CODE_LINE and CODE_FILE) from `func` to
`sd_journal_send`,right?

Ideally:

template <level L, typename Msg, typename... Entry>
void log(Msg msg, Entry... e,
  const source_location& location = source_location::current())

but packs must be last.

is there any suggestions ?

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

end of thread, other threads:[~2019-07-29  7:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-25  1:05 How to ideally fix the log function John Wang
2019-07-25 11:21 ` vishwa
2019-07-26  2:08   ` Andrew Jeffery
2019-07-26  3:03     ` John Wang
2019-07-29  0:26       ` Andrew Jeffery
2019-07-29  7:53         ` John Wang

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.