This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class LogbackConfig { | |
@Value("${dsn.etc}") | |
private String dsn; | |
@Bean(initMethod = "start", destroyMethod = "stop") | |
public SentryAppender sentryAppender(){ | |
LoggerContext ctx = (LoggerContext) LoggerFactory.getILoggerFactory(); | |
SentryAppender sentryAppender = new SentryAppender(); | |
sentryAppender.setDsn(dsn); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo.app; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.ResponseBody; | |
@Controller | |
public class SomeController { | |
@RequestMapping("/test") |