code: @Trivial
  	private static void logToJoblogIfNotTraceLoggable(Level level, String msg, Logger traceLogger){
  		if(includeServerLogging){
  			if(!traceLogger.isLoggable(level)){
  				jobLogger.log(level,msg);
  			}
  		}
  		else{
  			jobLogger.log(level, msg);
  		}
  	}
docs: if property includeServerLogging = true (default) in the server.xml,
  then all the messages logged to trace.log are also logged to the joblog.
  
  So logging to trace is enough for the message to be in both trace.log and the joblog.
  
  if property includeServerLogging = false in the server.xml,
  then none of the messages logged to trace.log are logged to the joblog.
  
  So printing to trace.log and joblogs has to be done separately.