[slf4j-dev] [Bug 322] New: Add FormattingTuple as possible parameter for log methods

bugzilla-daemon at qos.ch bugzilla-daemon at qos.ch
Sun Nov 23 15:37:32 CET 2014


http://bugzilla.slf4j.org/show_bug.cgi?id=322

          Priority: P5
            Bug ID: 322
          Assignee: slf4j-dev at qos.ch
           Summary: Add FormattingTuple as possible parameter for log
                    methods
          Severity: enhancement
    Classification: Unclassified
                OS: Windows NT
          Reporter: stas at jresearch.org
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: Core API
           Product: SLF4J

Add FormattingTuple as possible parameter for log methods. 

For example add 

Logger#error(Marker marker, FormattingTuple tuple);
and
Logger#error(FormattingTuple tuple);

It is necessary in case it coder wants to use formatted message multiple times: 

FormattingTuple tuple = MessageFormatter.format("Can't create an order: {}",
e.getLocalizedMessage(), e); //$NON-NLS-1$
LOGGER.error(tuple.getMessage(), e);
throw new IllegalStateException(tuple.getMessage());

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-dev/attachments/20141123/5c2ba44a/attachment.html>


More information about the slf4j-dev mailing list