Reputation: 20090
I am wondering why there is no
logger.log(level, ...)
in slf4j. Is there a precise reason? When migrating from log4j to slf4j and using logback, this is causing me headache !
Upvotes: 4
Views: 919
Reputation: 15768
slj4j is just a Wrapper around the actual Logger implementation, in order to provide flexibility to change the underlying implementation.
Having said that , instead .log(,) notation, slf4j uses logger.level() like - logger.debug() logger.info() etc
and that too based on the supported LEVEL defined in your underlying logger configuration for example logger.properties.
Upvotes: 2
Reputation: 62908
This is just speculation, but I think log(Level...
type method is not in the interface for some combination of these reasons:
Upvotes: 0