Victor Grazi
Victor Grazi

Reputation: 16490

Using Maven Invoker, how can I get the log messages

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?

Upvotes: 4

Views: 447

Answers (0)

Related Questions