How can I get Logback to work with Eclipse?

How do I get a registration framework (currently Logback) to play well with Eclipse? In particular, it would be nice to click on the log statement and go to the line in which it was created.

I know Logback Eclipse Plugin , however, apparently, it is deprecated and only works with the old version of the log.

Is there any other logging framework that works better with Eclipse? I suppose there should be a good way to do this.

+6
source share
2 answers

If you add %caller to the template, then the Eclipse console functionality may solve your problem ...

+2
source

I am using this template:

 <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level (%file:%line\) - %message%n</pattern> </encoder> </appender> 

The part (% file:% line) is by default accessible to the client in the Eclipse console.

+12
source

Source: https://habr.com/ru/post/913076/


All Articles