package com.anrisoftware.sscontrol.parser;

import static com.anrisoftware.sscontrol.parser.AppArgsLogger._.profile_set;
import static com.anrisoftware.sscontrol.parser.AppArgsLogger._.scripts_set;
import static com.anrisoftware.sscontrol.parser.AppArgsLogger._.servers_set;
import static com.anrisoftware.sscontrol.parser.AppArgsLogger._.services_set;
import static com.anrisoftware.sscontrol.parser.AppArgsLogger._.variables_set;

import com.anrisoftware.globalpom.log.AbstractLogger;

/**
 * Logging for {@link AppArgs}.
 * 
 * @author Erwin Mueller, erwin.mueller@deventm.org
 * @since 1.0
 */
class AppArgsLogger extends AbstractLogger {

    enum _ {

        scripts_set("Service scripts locations set: '{}'."),

        profile_set("Profile set: '{}'."),

        servers_set("Servers set: '{}'."),

        variables_set("Variables set: '{}'."),

        services_set("Services set: '{}'.");

        private String name;

        private _(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return name;
        }
    }

    /**
     * Sets the context of the logger to {@link AppArgs}.
     */
    public AppArgsLogger() {
        super(AppArgs.class);
    }

    void scriptsSet(String scripts) {
        debug(scripts_set, scripts);
    }

    void profileSet(String profile) {
        debug(profile_set, profile);
    }

    void serversSet(String servers) {
        debug(servers_set, servers);
    }

    void variablesSet(String variables) {
        debug(variables_set, variables);
    }

    void servicesSet(String services) {
        debug(services_set, services);
    }
}

@@ -1,8 +1,803 @@
+/*%0A * Copyright 2013 Erwin M%C3%BCller %3Cerwin.mueller@deventm.org%3E%0A *%0A * This file is part of sscontrol-cli-app.%0A *%0A * sscontrol-cli-app is free software: you can redistribute it and/or modify it%0A * under the terms of the GNU Affero General Public License as published by the%0A * Free Software Foundation, either version 3 of the License, or (at your%0A * option) any later version.%0A *%0A * sscontrol-cli-app is distributed in the hope that it will be useful, but%0A * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or%0A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License%0A * for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with sscontrol-cli-app. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A
 package 

Update license header