[slf4j-dev] Logger api question

Joern Huxhorn jhuxhorn at bpinteractive.com
Tue Mar 4 09:52:42 CET 2008


Ziftci, Celal (IT) wrote:
> 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.

This is the relevant bug-report/feature request:
http://bugzilla.slf4j.org/show_bug.cgi?id=70

Joern.




More information about the slf4j-dev mailing list