I am stuck in this problem for a while :
I have a class and it has some functions and also has some logging statements written inside of it. I want to enable/disable logging while creation an object of that particular class by passing some arguments in constructor. Would it be possible.
I am logging slf4j as my logging façade library on top of logback.
Any suggestions are always welcome.