[richfaces-issues] [JBoss JIRA] (RF-13279) Extend Logger interface with method log(Level level, CharSequence message, Object... args);

Brian Leathem (JIRA) jira-events at lists.jboss.org
Wed Oct 23 13:16:03 EDT 2013


    [ https://issues.jboss.org/browse/RF-13279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12824381#comment-12824381 ] 

Brian Leathem commented on RF-13279:
------------------------------------

The RichFaces logger is an abstraction over various logging implementations.  We have to take care when we extend the interfaces to ensure that the new feature is supported by all anticipated logging implementations.

As a workaround, you can use String#format in the CharSequence.
                
> Extend Logger interface with method log(Level level, CharSequence message, Object... args);
> -------------------------------------------------------------------------------------------
>
>                 Key: RF-13279
>                 URL: https://issues.jboss.org/browse/RF-13279
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: core
>    Affects Versions: 5.0.0.Alpha2
>            Reporter: Lukáš Fryč
>            Priority: Minor
>
> Currently there are following methods:
> {code}
> void log(Level level, CharSequence content);
> void log(Level level, Throwable error, Enum<?> messageKey, Object... args);
> {code}
> But if someone wants to log String message and interpolate it with list of arguments, there is no equivalent available.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list