Logging - Vaadin 7.2.0, Java 8

Using Tomcat 7.0.53, the logs going to catalina.out are fewer, and not consistent between the deployed (production mode = true) and Eclipse environments.

In Eclipse, I get a variety of apache/atmosphere and my own webapp log messages. In the deployed version, I get nothing from Atmosphere. A log trace from Tomcat start to first user logon is shown below. It’s eerily quiet. Would I get a stack trace if one were to arise?

I use logging syntax like this, which seems to work fine. My own notes show at the bottom of the log as users start to log in.

Logger.getGlobal().log(Level.INFO, "*** FOSS *** " +fleetType + " DispatchUI: " + user + " logged on" );

Here’s a trace of this morning’s catalina out from the production system - system start to user login. Much shorter than usual:

May 21, 2014 4:14:04 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.30 using APR version 1.5.1.
May 21, 2014 4:14:05 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true]
, sendfile [true]
, accept filters [false]
, random [true]
.
May 21, 2014 4:14:05 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1 14 Mar 2012)
May 21, 2014 4:14:06 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]

May 21, 2014 4:14:06 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]

May 21, 2014 4:14:06 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2834 ms
May 21, 2014 4:14:06 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
May 21, 2014 4:14:06 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.53
May 21, 2014 4:14:06 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /usr/local/apache-tomcat-7.0.53/webapps/vfc.war
May 21, 2014 4:14:17 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.53/webapps/examples
May 21, 2014 4:14:19 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.53/webapps/ROOT
May 21, 2014 4:14:19 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.53/webapps/docs
May 21, 2014 4:14:19 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.53/webapps/manager
May 21, 2014 4:14:20 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.53/webapps/host-manager
May 21, 2014 4:14:20 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]

May 21, 2014 4:14:20 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]

May 21, 2014 4:14:20 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13696 ms
May 21, 2014 6:57:51 AM ca.demy.userinterfaces.DispatchUI successfulLogin
INFO: *** FOSS *** C172 DispatchUI: Graham Palmer logged on
May 21, 2014 7:31:22 AM ca.demy.userinterfaces.DispatchUI successfulLogin
INFO: *** FOSS *** C172 DispatchUI: Alethia Forsberg logged on
May 21, 2014 7:33:10 AM ca.demy.userinterfaces.FuelUI successfulLogin
INFO: *** FOSS *** FuelUI: Alethia Forsberg logged on

I see Java 8 has
depricated some logging syntax
. I wonder if Vaadin is tracking these changes?

So I wonder if I’m getting all the log messages that Vaadin normally generates, or if I should be taking some action to get them back?

FWIW, I found my missing logs. They were going to /var/log/upstart/tomcat.log and not to catalina.out as they had been. I don’t know what caused the change, and I suppose they could be redirected back to catalina.out in the Ubuntu startup script, but I’m happy now knowing where to find them.