[
https://issues.apache.org/jira/browse/LOGCXX-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Middleton resolved LOGCXX-514.
-------------------------------------
Resolution: Fixed
Basic libfmt layout now exists.
If people want more features those can be added in the future.
> Create a libfmt layout
> ----------------------
>
> Key: LOGCXX-514
> URL: https://issues.apache.org/jira/browse/LOGCXX-514
> Project: Log4cxx
> Issue Type: New Feature
> Reporter: Robert Middleton
> Assignee: Robert Middleton
> Priority: Major
> Fix For: 1.0.0
>
>
> As an alternative to the PatternLayout that currently exists, create a Layout
> that uses libfmt to create the formatting of the message. This would utilize
> the fmt named parameters feature to replicate the %-replacements of
> PatternLayout.
>
> The configuration would look something like this:
> {code:java}
> [{localdate}] {logger:-20p} {level} - {message}{newline}
> {code}
>
> Things to figure out:
> * How to replicate %c\{2} --> a.b.c prints as b.c
> ** Probably need to add this as a parameter instead of encoding in the
> format string
> * Similar to the above, how to handle arbitrary MDC key? Add a parameter to
> the layout?
> * Make sure that if fmt is not available, we don't fail - this should be an
> optional dependency.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)