Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to redirect stderr to a file? #375

Open
Ryanznoco opened this issue Nov 20, 2023 · 9 comments
Open

How to redirect stderr to a file? #375

Ryanznoco opened this issue Nov 20, 2023 · 9 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@Ryanznoco
Copy link

I'm submitting a feature request.

How do I redirect stderr to a file?

@fvarrui
Copy link
Owner

fvarrui commented Nov 20, 2023

Do you mean JVM errors?

@Ryanznoco
Copy link
Author

Yes

@fvarrui
Copy link
Owner

fvarrui commented Nov 20, 2023

Which system? All of them?

@Ryanznoco
Copy link
Author

Windows only.

@fvarrui
Copy link
Owner

fvarrui commented Nov 20, 2023

Ok, I'll take a look into it and tell you something

@fvarrui fvarrui added the enhancement New feature or request label Nov 20, 2023
@Ryanznoco
Copy link
Author

Ok, thanks a lot.

@fvarrui
Copy link
Owner

fvarrui commented Nov 30, 2023

One question: have you tried winConfig.headerType=console and then run your app from terminal?

@Ryanznoco
Copy link
Author

It works, but is there no other way? I don't want to run a terminal.

@fvarrui
Copy link
Owner

fvarrui commented Feb 25, 2024

How do I redirect stderr to a file?

Maybe this should do the job 🤷‍♂️

System.setErr(new PrintStream("error.txt"));

or you can use a Logger.

@fvarrui fvarrui added feedback Waiting for feedback question Further information is requested and removed feedback Waiting for feedback labels Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants