Reputation: 16490
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