You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Robert Middleton (Jira)" <lo...@logging.apache.org> on 2022/08/14 16:49:00 UTC

[jira] [Updated] (LOGCXX-514) Create a libfmt layout

     [ https://issues.apache.org/jira/browse/LOGCXX-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Middleton updated LOGCXX-514:
------------------------------------
    Fix Version/s: 1.0.0

> 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)