[slf4j-dev] Logger api question

Ziftci, Celal (IT) Celal.Ziftci at morganstanley.com
Mon Mar 3 23:18:17 CET 2008


Hi,
I'm using the Logger api in slf4j. I like the usage of optional
arguments such as
logger.info("{} and {} are used later on", arg1, arg2);
 
However, I realized that this is only supported when we will not log a
Throwable, i.e. the api doesn't have any methods like:
loger.info("{} and {} are used later on", arg1, arg2, aThrowable);
 
Is there a certain reason for this? We can log them separately obviously
(first the message with arguments and then the exception), but it would
be nice to have this as a method in Logger interface I think.
Let me know your comments/feedback on this.
Thanks.
 
Celal Ziftci
Morgan Stanley | Technology
750 Seventh Avenue, 12th Floor | New York, NY  10019
Phone: +1 212 762-2828
Fax: +1 212 762-1012
Celal.Ziftci at morganstanley.com
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/slf4j-dev/attachments/20080303/3a8ed9c4/attachment.htm>


More information about the slf4j-dev mailing list