Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
910 views
in Technique[技术] by (71.8m points)

logging - Is it possible to redirect console output to a log file in IntelliJ like Eclipse?

In Eclipse it's possible to redirect console output to a log file using the method outlined here.

Is there a similar feature in IntelliJ IDEA?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

UPDATE: this feature is available in IDEA 11.

Not possible in IDEA at the moment, I've submitted a new feature request. Feel free to vote.

A workaround could be implemented using wrapper class with main() method which will redirect stdout and stderr to files and then run the main class of your application.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...