[slf4j-user] Use same message in log and Exception

Jeff Jensen jjensen at apache.org
Mon Jul 5 15:03:06 CEST 2010


Oh yes, a most excellent point!  Thanks!


-----Original Message-----
From: slf4j-user-bounces at qos.ch [mailto:slf4j-user-bounces at qos.ch] 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 <jjensen at apache.org> 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
slf4j-user at qos.ch
http://qos.ch/mailman/listinfo/slf4j-user



More information about the slf4j-user mailing list