Added Log Group Sample (#9112)

This commit is contained in:
Mona Mohamadinia 2020-04-22 20:37:18 +04:30 committed by GitHub
parent fdec685ad4
commit 28de9f4997
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
package com.baeldung.group;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@SpringBootApplication
@ActiveProfiles("log-group")
public class LogGroupApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(LogGroupApplication.class);
@RequestMapping("/log-group")
public void justLog() {
LOGGER.debug("Received a request");
}
public static void main(String[] args) {
SpringApplication.run(LogGroupApplication.class, args);
}
}