How do I capture System.out.println("message") when running "vertx start"?

106 views
Skip to first unread message

Stephan Wissel

unread,
Feb 18, 2016, 5:04:24 AM2/18/16
to vert.x
Hi there,

doing baby steps in vert.x. Wrote the first verticle that uses a lot of System.out.println to document what it is doing (in line with factor 11).
Works like a charm with vertx run. I didn't find anything when using vertx start/stop. I checked .vertx, /tmp ~/tmp ~/.tmp ... but I couldn't find anything. So I presume I missed something I need to do to get the output written to file?

Clement Escoffier

unread,
Feb 18, 2016, 5:21:57 AM2/18/16
to ve...@googlegroups.com
Hi,

If you want to get the messages written using System.out / System.err add this parameter to your start command:

redirect-output : redirect the spawned process output and error streams to the parent process streams.

Clement


--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/6a2d55c6-e261-4d5b-a8fe-5d59081b4580%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephan Wissel

unread,
Feb 18, 2016, 11:59:10 PM2/18/16
to vert.x
OK, so I could do

vertx run com.cool.MyVerticle -cp VerticleCollection.jar --redirect-output

and even

vertx run com.cool.MyVerticle -cp VerticleCollection.jar --redirect-output > mylogfile.log

thx!
Reply all
Reply to author
Forward
0 new messages