Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot Sentry Log4j2 Kotlin Spring Boot Webflux-未向Sentry发布任何问题_Spring Boot_Kotlin_Sentry - Fatal编程技术网

Spring boot Sentry Log4j2 Kotlin Spring Boot Webflux-未向Sentry发布任何问题

Spring boot Sentry Log4j2 Kotlin Spring Boot Webflux-未向Sentry发布任何问题,spring-boot,kotlin,sentry,Spring Boot,Kotlin,Sentry,很难发布哨兵问题 这是我的设置 我已将我的DSN导出为SENTRY\u DSN src/main/kotlin/resources/log4j2.xml build.gradle.kts ... dependencies { compile("io.sentry:sentry-log4j2:1.7.22") ... } 控制器.kt @RestController @RequestMapping("/users") class AuthenticationControlle

很难发布哨兵问题

这是我的设置

我已将我的DSN导出为
SENTRY\u DSN

src/main/kotlin/resources/log4j2.xml


build.gradle.kts

...
dependencies {
    compile("io.sentry:sentry-log4j2:1.7.22")
    ...
}
控制器.kt

@RestController
@RequestMapping("/users")
class AuthenticationController(private val exampleService: ExampleService) {

    private val logger = LogManager.getLogger(AuthenticationService::class)

    @DeleteMapping("/session")
    fun logout(): Mono<Response> {
        logger.error("this is a error")
        return exampleService.returnMono()
    }

}
@RestController
@请求映射(“/users”)
类AuthenticationController(专用val exampleService:exampleService){
private val logger=LogManager.getLogger(AuthenticationService::class)
@删除映射(“/session”)
趣味注销():Mono{
logger.error(“这是一个错误”)
returnexampleService.returnMono()
}
}

我希望这个
logger.error
调用向sentry发送消息。

您的日志中是否有与sentry相关的条目?您的日志中是否有与sentry相关的条目?