I am creating a simple Jetty server and am wondering how to print something into the console, like variables at specific times or when a user connects. I am compiling the Jetty server with a java class with jetty-all jar files. I am not using any xml currently. Could anyone tell me how to print something into the console? Such as, when a user connects say, “User connected”
Thanks.
You better should output to a log file, you could use
log4jfor that.Use
on linux you then can use
to live output the content to the console