Failed to bind properties under 'logging.level.com.netflix.eureka' to org.springframework.boot.logging.LogLevel
Asked Answered
B

1

5

i'm using Eureka Server with Spring Boot. The Error:

org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'logging.level.com.netflix.eureka' to org.springframework.boot.logging.LogLevel


pom.xml

application.properties

spring.application.name=eureka-server
server.port=8761

# avoid registering itself as a client
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
logging.level.com.netflix.eureka=ON
logging.level.com.netflix.discovery=ON
Banausic answered 12/6, 2020 at 21:51 Comment(1)
Hi, fellow Udacian :)Sturdy
K
8

You are using an invalid value for your two properties:

logging.level.com.netflix.eureka
logging.level.com.netflix.discovery

How you can see in your stash, you have to set one of the supported values from enum class: org.springframework.boot.logging.LogLevel

package org.springframework.boot.logging;

public enum LogLevel {

    TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF

}

So for example if you want to see debug level messages and above you can set it like that:

logging.level.com.netflix.eureka=debug
logging.level.com.netflix.discovery=debug
Kavanagh answered 11/7, 2020 at 14:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.