/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package de.interseroh.tmb.applauncher.server;

import java.util.logging.Logger;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

import com.google.gwt.logging.server.RemoteLoggingServiceImpl;

import de.interseroh.tmb.applauncher.shared.ApplauncherServiceEndpoint;
import de.interseroh.tmb.common.LoggingCrossOriginConfiguration;

@SpringBootApplication
@Import(LoggingCrossOriginConfiguration.class)
public class ApplauncherApplication {
	private static final Logger logger = Logger
			.getLogger(ApplauncherApplication.class.getName());

	@Value("${server.context-path}")
	private String contextPath;

	public static void main(String[] args) {
		SpringApplication.run(ApplauncherApplication.class, args);
	}

    @Bean
    public ServletRegistrationBean remoteLoggingService() {
        return new ServletRegistrationBean(new RemoteLoggingServiceImpl(),
                contextPath
                        .concat(ApplauncherServiceEndpoint.GWT_REMOTE_LOGGING)
                        + "/*");
    }

}

@@ -851,42 +851,8 @@
 r;%0A%0A
-import java.util.logging.Logger;%0A%0A
 impo
@@ -1515,108 +1515,8 @@
 on %7B
-%0A%09private static final Logger logger = Logger%0A%09%09%09.getLogger(ApplauncherApplication.class.getName());
 %0A%0A%09@

remove unused logger