Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::format() support in Poco::Logger #4775

Open
obiltschnig opened this issue Nov 17, 2024 · 0 comments
Open

std::format() support in Poco::Logger #4775

obiltschnig opened this issue Nov 17, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@obiltschnig
Copy link
Member

Poco::Logger should support formatting log messages using C++20 std::format alternatively to Poco::format().
Provide alternative methods:

  • fmtTrace(fmt, ...)
  • fmtDebug(fmt, ...)
  • fmtInformation(fmt, ...)
  • fmtNotice(fmt, ...)
  • fmtWarning(fmt, ...)
  • fmtError(fmt, ...)
  • fmtCritical(fmt, ...)
  • fmtFatal(fmt, ...)

These take an std::format() format string and a variable number of parameters and internally call std::format() after the log level check.

@obiltschnig obiltschnig added this to the Unspecified milestone Nov 17, 2024
@obiltschnig obiltschnig self-assigned this Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant