灰熊登录stderr,在日食中烦人 [英] grizzly logs to stderr, annoying in eclipse

查看:224
本文介绍了灰熊登录stderr,在日食中烦人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用eclipse中的灰熊框架运行我的junit jersey服务测试时,该日志指向stderr。因此,控制台窗口抓住焦点,日志显示为红色。

When i run my junit jersey service tests using the grizzly framework in eclipse, the log is directed to stderr. As a result the console window grabs focus, and the log appears red.

我无法确定正确的配置步骤。从我的阅读看,我需要将slf4j.jar添加到我的pom.xml中,并在某处添加一个日志记录属性文件?但我不确定哪些slf4j jar要添加(有很多)或放置日志属性文件的位置。

I can't figure out the proper configuration steps. From my reading it looks like i need to add the slf4j.jar to my pom.xml and add a logging properties file somewhere? But i'm unsure which slf4j jars to add (there are many) or where to place the logging properties file.

或者坦率地说,如果这是一般的正确方法。

Or, frankly, if this is the right approach in general.

p.s。我也知道我可以在日食中关闭显示控制台标准错误更改功能,但我宁愿不要画出这个问题。 :

p.s. also i am aware i can turn off the "show console when standard error changes" feature in eclipse, but i'd rather not paint over the problem. :)

推荐答案

它不像我的灰熊使用slf4j,而是标准java.util.logging框架。如果是这样,您可以阅读有关在此处进行配置的信息: http://docs.oracle.com/javase/6/docs/technotes/guides/logging/overview.html#1.8

It doesn't look to me like Grizzly used slf4j, but rather the "standard" java.util.logging framework. If that's the case, you can read about configuring it here: http://docs.oracle.com/javase/6/docs/technotes/guides/logging/overview.html#1.8

这篇关于灰熊登录stderr,在日食中烦人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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