@@ -0,0 +1,2843 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one or more%0A * contributor license agreements.  See the NOTICE file distributed with%0A * this work for additional information regarding copyright ownership.%0A * The ASF licenses this file to You under the Apache License, Version 2.0%0A * (the %22License%22); you may not use this file except in compliance with%0A * the License.  You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.apache.shardingsphere.infra.log;%0A%0Aimport lombok.AccessLevel;%0Aimport lombok.NoArgsConstructor;%0Aimport lombok.extern.slf4j.Slf4j;%0Aimport org.apache.shardingsphere.infra.auth.Authentication;%0Aimport org.apache.shardingsphere.infra.auth.yaml.swapper.AuthenticationYamlSwapper;%0Aimport org.apache.shardingsphere.infra.config.RuleConfiguration;%0Aimport org.apache.shardingsphere.infra.yaml.config.YamlRootRuleConfigurations;%0Aimport org.apache.shardingsphere.infra.yaml.engine.YamlEngine;%0Aimport org.apache.shardingsphere.infra.yaml.swapper.YamlRuleConfigurationSwapperEngine;%0A%0Aimport java.util.Collection;%0Aimport java.util.Properties;%0A%0A/**%0A * Configuration logger.%0A */%0A@NoArgsConstructor(access = AccessLevel.PRIVATE)%0A@Slf4j%0Apublic final class ConfigurationLogger %7B%0A    %0A    /**%0A     * Log rule configuration.%0A     *%0A     * @param ruleConfigurations rule configurations%0A     */%0A    public static void log(final Collection%3CRuleConfiguration%3E ruleConfigurations) %7B%0A        YamlRootRuleConfigurations yamlRuleConfigurations = new YamlRootRuleConfigurations();%0A        yamlRuleConfigurations.setRules(new YamlRuleConfigurationSwapperEngine().swapToYamlConfigurations(ruleConfigurations));%0A        log(%22Rule configurations: %22, YamlEngine.marshal(yamlRuleConfigurations));%0A    %7D%0A    %0A    /**%0A     * Log authentication.%0A     *%0A     * @param authentication authentication%0A     */%0A    public static void log(final Authentication authentication) %7B%0A        if (null != authentication) %7B%0A            log(authentication.getClass().getSimpleName(), YamlEngine.marshal(new AuthenticationYamlSwapper().swapToYamlConfiguration(authentication)));%0A        %7D%0A    %7D%0A    %0A    /**%0A     * Log properties.%0A     *%0A     * @param props properties%0A     */%0A    public static void log(final Properties props) %7B%0A        if (null != props) %7B%0A            log(props.getClass().getSimpleName(), YamlEngine.marshal(props));%0A        %7D%0A    %7D%0A    %0A    private static void log(final String type, final String logContent) %7B%0A        log.info(%22%7B%7D:%5Cn%7B%7D%22, type, logContent);%0A    %7D%0A%7D%0A

Remove ConfigurationLogger