jcabi-log icon indicating copy to clipboard operation
jcabi-log copied to clipboard

Buffer stack traces from subprocess

Open NaanProphet opened this issue 8 years ago • 3 comments

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

NaanProphet avatar Sep 06 '16 17:09 NaanProphet

@yegor256 take a look at this issue please and dispatch it somehow, see par.21

dmarkov avatar Sep 12 '16 09:09 dmarkov

@NaanProphet just save them to StringOutputStream. Or I didn't understand the question?

yegor256 avatar Nov 22 '16 07:11 yegor256

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

NaanProphet avatar Nov 23 '16 03:11 NaanProphet