On 24 Apr 2010, at 21:05, Joern Huxhorn wrote:
> 
> I have one remaining headache:
> I'd really, really like to have generic methods that log with a Level 
> parameter.
> This would be an ideal place for an enum but we are still staying 1.4 for 
> now, right?
> If we are not using an enum now, we won't be able to switch to an enum at a 
> later time without breaking binary compatibility.
> Because of that, I'd suggest to keep those generic log methods out of the 
> interface until we actually switch to 1.5 altogether - even though I have 
> several places where I could use that functionality very well!

I needed exactly this for the sysout-over-slf4j module that I'm hoping will be 
included as an SLF4J bridging module.  Ceki told me that it was acceptable for 
an extension module to require Java 5.  I've written an implementation here:
http://github.com/Mahoney/slf4j/blob/master/sysout-over-slf4j/src/main/java/org/slf4j/sysoutslf4j/context/LogLevel.java

Nothing very brilliant, you've probably written it yourself already.  And it 
only does the two methods I needed.  Still, thought it might be worth 
mentioning.

Rob
_______________________________________________
slf4j-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/slf4j-dev

Reply via email to