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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -