English 中文(简体)
我能否召集7名净户将全部的康索尔产出提交档案?
原标题:Can I configure Netbeans 7 to send all of the Console output to a file?

I m与包含2500多个系统编码基一道工作。 除了提供证明外,是否还有办法让所有公司将其产出提交档案? I m 使用Netbeans 7. 已将Log4j纳入该项目,但该项目中只使用了几百种洛米方法。

最佳回答

The fact your code base uses log4j is rather irrelevant, since the System.out.println calls you want to redirect bypass the whole logging framework.

我的第一项建议是取代<代码>System.out.println。 标识表的电话。 找到一个地方几乎应该允许你这样做。

否则,你只能将另一个<代码>PrintStream作为System.out,使用。 http://blogs.oracle.com/nickpedhen/enter/java_redirecting_system_out_and"rel=“nofollow”here rel=“nofollow”

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签