runtime - Collecting the output messages in java -


i'm trying write code allows me collect runtime messages printed output console. example, while app running these exceptions pops , collect them , print them string in app. here picture of mean.

image

can me issue?

you can store console outputs file:

printstream out = new printstream(new fileoutputstream("output.txt")); system.seterr(out); 

also, can take of java logging framework.


Comments

Popular posts from this blog

python - Getting ESC characters and non-printables from UDP socket / buffer -

Convert excel to pdf with VBScript -