[ https://issues.apache.org/jira/browse/LOG4J2-1365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15243051#comment-15243051 ]
Remko Popma commented on LOG4J2-1365: ------------------------------------- We can add explicit casts to the isEnabledMethods in AbstractLoggerTest that cause trouble: {code} @Override public boolean isEnabled(final Level level, final Marker marker, final CharSequence data, final Throwable t) { charSeqCount++; return isEnabled(level, marker, (Message) new SimpleMessage(data), t); } {code} > Add CharSequenceFormattable interface for Messages to improve performance of > Layouts > ------------------------------------------------------------------------------------ > > Key: LOG4J2-1365 > URL: https://issues.apache.org/jira/browse/LOG4J2-1365 > Project: Log4j 2 > Issue Type: Improvement > Components: Layouts > Affects Versions: 2.5 > Reporter: Mikael Ståldal > Assignee: Mikael Ståldal > Priority: Minor > > {code} > public interface CharSequenceFormattable { > CharSequence getFormattedCharSequence(); > } > {code} > This can be implemented by Messages where it makes sense and used by Layouts > where it makes sense. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org