You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`plugins {
// org.springframework.boot is dependent on io.spring.dependency-management, org.springframework.cloud and gradle
id("org.springframework.boot") version "3.2.3"
}
Task :ExampleApplication.main()
ERROR StatusConsoleListener Error processing element Encoder: CLASS_NOT_FOUND
ERROR StatusConsoleListener Error processing element LogstashEncoder: CLASS_NOT_FOUND
ERROR StatusConsoleListener Error processing element Provider: CLASS_NOT_FOUND
ERROR StatusConsoleListener Error processing element LogstashEncoder: CLASS_NOT_FOUND
ERROR StatusConsoleListener Unable to locate plugin type for Encoder
ERROR StatusConsoleListener Timestamp contains an invalid element or attribute "TimestampPattern"
ERROR StatusConsoleListener Mdc contains an invalid element or attribute "IncludeMdcKeyNames"
ERROR StatusConsoleListener Unable to locate plugin for Provider
ERROR StatusConsoleListener Unable to locate plugin for LogstashEncoder
ERROR StatusConsoleListener Unable to locate plugin for Encoder
ERROR StatusConsoleListener Could not create plugin of type class org.apache.logging.log4j.core.appender.ConsoleAppender for element Console: java.lang.NullPointerException: Cannot invoke "org.apache.logging.log4j.core.config.plugins.util.PluginType.getElementName()" because "childType" is null
java.lang.NullPointerException: Cannot invoke "org.apache.logging.log4j.core.config.plugins.util.PluginType.getElementName()" because "childType" is null
The text was updated successfully, but these errors were encountered:
build.gradle
`plugins {
// org.springframework.boot is dependent on io.spring.dependency-management, org.springframework.cloud and gradle
id("org.springframework.boot") version "3.2.3"
}
extra["springCloudVersion"] = "2021.0.3"
extra["springBootAdminVersion"] = "2.4.1"
configurations {
implementation {
exclude("org.springframework.boot", "spring-boot-starter-logging")
}
dependencies {
// implementation
implementation("de.codecentric:spring-boot-admin-starter-client")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-integration")
implementation("org.springframework.boot:spring-boot-starter-log4j2")
implementation("com.fasterxml.jackson.core:jackson-core")
implementation("com.fasterxml.jackson.core:jackson-databind")
implementation("com.fasterxml.jackson.core:jackson-annotations")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
implementation("io.micrometer:micrometer-tracing")
implementation("io.micrometer:micrometer-tracing-bridge-brave")
// https://mvnrepository.com/artifact/io.github.alexswilliams/logstash-log4j2-encoder
implementation("io.github.alexswilliams:logstash-log4j2-encoder:1.0.4")
}
`
log4j2-spring.yml
log4j2-spring.txt
application.yml
logging: config: classpath:log4j2-spring.yml file.name: example.log
The text was updated successfully, but these errors were encountered: