如何使Logback与Eclipse良好配合? [英] How do I get Logback to work nicely with Eclipse?

查看:59
本文介绍了如何使Logback与Eclipse良好配合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使我的日志记录框架(当前为Logback)与Eclipse完美配合?特别是,最好单击日志语句并转到产生该语句的行.

How do I get my logging framework (currently Logback) to play nicely with Eclipse? In particular, it would be nice to click on a log statement and be taken to the line where it was produced.

我知道 Logback Eclipse插件,但是显然它已经过时了,并且只能使用带有旧版本的Logback.

I'm aware of the Logback Eclipse Plugin however apparently it is outdated, and only works with an old version of Logback.

是否还有其他更适合Eclipse的日志记录框架?我认为一定有一种不错的方法.

Is there some other logging framework that works better with Eclipse? I assume there must be a nice way to do this.

推荐答案

如果将%caller添加到模式中,那么Eclipse控制台的功能可以解决您的问题...

If you add %callerto the pattern, then the functionality of the Console of Eclipse can handle your problem...

这篇关于如何使Logback与Eclipse良好配合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆