Grzenio
Grzenio

Reputation: 36679

Configure IntelliJ to print the standard output in the console window but also save it to file

How can I configure IntelliJ to capture the standard output of the application to a file, but still display it in the standard console window?

Upvotes: 62

Views: 37822

Answers (3)

Yitzchok Ginzberg
Yitzchok Ginzberg

Reputation: 101

In IntelliJ IDEA 2021.2 this no longer works.

P.S. If your motivation is because you can't scroll back to the output start you can increase how many lines you can scroll backwards.

Screenshot of scrollback buffer size setting.

Upvotes: 2

CrazyCoder
CrazyCoder

Reputation: 402423

This feature is available starting from IntelliJ IDEA 11:

save log

Upvotes: 91

Sophia Feng
Sophia Feng

Reputation: 1003

This feature does work in IDEA 14.1.1. Also in Run/Debug configuration.

enter image description here

The writing occurs after the run finishes.

Upvotes: 8

Related Questions