jcabi-log
jcabi-log copied to clipboard
Buffer stack traces from subprocess
Hi there!
Would it be conceptually possible/feasible to buffer and log stack traces at stderr from a VerboseProcess to print as a single statement?
We are essentially using the log file of the parent JVM for some monitoring, and having the stack trace write 100+ separate statements in our file is triggering that many alerts
@yegor256 take a look at this issue please and dispatch it somehow, see par.21
@NaanProphet just save them to StringOutputStream
. Or I didn't understand the question?
Hey @yegor256! i think it's a little different—
In this use case, the sub-process that's running is an outside library/process whose code we don't have access to. Otherwise, it would have been conceptually possible to change their code to use e.g. a StringOutputStream