Oh yes, a most excellent point! Thanks!
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kostis Anagnostopoulos Sent: Monday, July 05, 2010 7:27 AM To: User list for the slf4j project Subject: Re: [slf4j-user] Use same message in log and Exception On Sun, Jul 4, 2010 at 6:18 AM, Jeff Jensen <[email protected]> wrote: > It would be useful if the log messages (e.g. error, debug, etc.) returned > the String logged message. The code above creates the message twice. Having all log-methods return a non-empty message invalidates the whole purpose of parametrizing messages. Therefore the returned string would vary depending on the enabled logging-levels. And empty-strings would not be of much use as exception messages. Regards, Kostis Anagnostopoulos _______________________________________________ slf4j-user mailing list [email protected] http://qos.ch/mailman/listinfo/slf4j-user _______________________________________________ slf4j-user mailing list [email protected] http://qos.ch/mailman/listinfo/slf4j-user
