[slf4j-dev] Better printing method signatures?
Niclas Hedhman
niclas at hedhman.org
Sun Jun 19 06:53:38 CEST 2005
On Sunday 19 June 2005 04:02, Ceki Gülcü wrote:
> Even if Object[] is an
> Object, I still wonder if we should introduce one more method
> debug(String, Object[]) for consistencies sake. (It's a small detail.)
It would make documentation easier and better supported in IDEs.
The only negative thing about many methods that I can think of, is unittesting
becomes slightly more 'tiring'. That made me think that we should perhaps
provide a "slf4j-unit.jar" which is SLF4J tailored for unittesting, which is
as light weight as possible, and maybe contain verification methods of
expected input.
> Looking at the javadocs for Logger [1], I can't help but notice how
> weird the argument name "parameterizedMsg" looks. So instead of
>
> debug(String parameterizedMsg, Object param1)
agree this is somewhat 'less clear',
> debug(String format, Object param1)
but I don't think this is much better,
> debug(String msg, Object param1)
and 'msg' should be 'message', but even if it lacks communication, I can't
think of anything better.
Cheers
Niclas
More information about the slf4j-dev
mailing list