Skip to content

Instantly share code, notes, and snippets.

@Mr-Kumar-Abhishek
Created August 28, 2015 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mr-Kumar-Abhishek/03e2f364e2db2125aa0d to your computer and use it in GitHub Desktop.
Save Mr-Kumar-Abhishek/03e2f364e2db2125aa0d to your computer and use it in GitHub Desktop.
print stack trace exception in stdout rather than stderr
catch(Exception e) {
e.printStackTrace(System.out);
}
@ronz94
Copy link

ronz94 commented Aug 28, 2015

is this how stack trace is done?

@Mr-Kumar-Abhishek
Copy link
Author

It only prints out stack trace in stdout instead of stderr , you could check them in stderr also..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment