3

Is there any way to programmatically inspect process log messages using the Maven Invoker framework?

I am using that framework to execute some integration tests against an embedded server (Jetty), and I need to inspect the logs to know when the server startup has completed. Our Jetty is using Slf4j for logging.

I tried creating my own InvokerLogger attached to a ByteArrayOutputStream, but that just produced an empty string.

Is there any way to programmatically grab the log messages?

Victor Grazi
  • 15,563
  • 14
  • 61
  • 94

0 Answers0