In my plugin I need to output logging messages with line number, time and so on. So for that purpose I need some logging framework which output I would redirect to ui.
So I tried using logback-classic and providing custom appender, that would output messages to ui. To ininitialize the appender in my plugin I cast Logger returned from slf4j to logback-classic. But slf4j can be bound only to one logging framework at a time and when I run plugin, slf4j binds to log4j from clion jar.
I tried to exclude the log4j from the classpath but that didn't work. I also tried to use log4j that clion uses instead of logback-classic, but I was unable to get log4j logger because it is deprecated.
Can I use some slf4j logging framework (like logback-classic) inside of a plugin? Or can I somehow remove log4j binding from the classpath?