I was surprised there's no generic log function for logback, in the same way as for java.util.logging. I have following legacy code using java.util.logging:
logger.log(logLevelOfChoice, "log message");
How to properly port it to logback?
I was surprised there's no generic log function for logback, in the same way as for java.util.logging. I have following legacy code using java.util.logging:
logger.log(logLevelOfChoice, "log message");
How to properly port it to logback?
There is no one method that is equivalent. You have to call each of the individual methods that map to the right level.