Hello.
I've been working with Logback for a bit now and I needed to write a wrapper around a normal Logger than holds several Logger instances and chooses one depending on a global status:
<code>
public class WrapperLogger implements Logger {
...
public void debug(String arg0) {
Logger logger = chooseLogger();
logger.debug(arg0); // Line: 102
}
</code>
The problem is when I do something of that sort, I always get:
14:51:14 INFO [*] <PackageName> [<WrapperClassName>.java:<Line>] <Message>
Where WrapperClassName is WrapperLogger and Line is 102 if we call WrapperLogger.debug(arg0). Instead of that I'd like to have there a level above (like "the caller level"). Is that possible?
Thank you for you help and effort.
Best regards.