package fr.treeptik.cloudunit.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * Created by nicolas on 05/07/2016.
 */
@Component
public class ProfileManager {
    @Autowired
    Environment environment;

    @PostConstruct
    public void getActiveProfiles() {
        for (final String profileName : environment.getActiveProfiles()) {
            System.out.println("Currently active profile - " + profileName);
        }
    }
}

@@ -32,16 +32,73 @@
 onfig;%0A%0A
+import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A
 import o
@@ -152,16 +152,16 @@
 owired;%0A
-
 import o
@@ -377,16 +377,106 @@
 nager %7B%0A
+%0A    private Logger logger = LoggerFactory%0A            .getLogger(ProfileManager.class);%0A%0A
     @Aut
@@ -660,26 +660,19 @@
     
-System.out.println
+logger.info
 (%22Cu

remove sysout