-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logback OnErrorConsoleStatusListener is not registered when using a custom logback-spring.xml #43822
Labels
type: task
A general task
Comments
spring-projects-issues
added
the
status: waiting-for-triage
An issue we've not yet triaged
label
Jan 14, 2025
philwebb
added
type: bug
A general bug
and removed
status: waiting-for-triage
An issue we've not yet triaged
labels
Jan 21, 2025
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 22, 2025
…ck file Prior to this commit, OnErrorConsoleStatusListener was not registered for a custom Logback configuration file. This commit registers OnErrorConsoleStatusListener when the Logback configuration is loaded from a custom Logback file that does not include any StatusListener. See spring-projectsgh-43822 Signed-off-by: Dmytro Nosan <[email protected]>
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 23, 2025
…ck file Prior to this commit, OnErrorConsoleStatusListener was not registered for a custom Logback configuration file. This commit registers OnErrorConsoleStatusListener when the Logback configuration is loaded from a custom Logback file that does not include any StatusListener. See spring-projectsgh-43822 Signed-off-by: Dmytro Nosan <[email protected]>
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 26, 2025
…ck file Prior to this commit, OnErrorConsoleStatusListener was not registered for a custom Logback configuration file. This commit registers OnErrorConsoleStatusListener when the Logback configuration is loaded from a custom Logback file. See spring-projectsgh-43822 Signed-off-by: Dmytro Nosan <[email protected]>
nosan
added a commit
to nosan/spring-boot
that referenced
this issue
Jan 26, 2025
…ck file Prior to this commit, OnErrorConsoleStatusListener was not registered for a custom Logback configuration file. This commit registers OnErrorConsoleStatusListener when the Logback configuration is loaded from a custom Logback file that does not include any StatusListener. See spring-projectsgh-43822 Signed-off-by: Dmytro Nosan <[email protected]>
Superseded by #43931 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Registration of
OnErrorConsoleStatusListener
was added in theLogbackLoggingSystem.loadDefaults
method (PR: #43575), similar to how theOnConsoleStatusListener
is registered whenlogback.debug
is enabled.However, I’m not sure if adding it only in
loadDefaults
method was the right approach, as the listener won’t be registered when a customlogback-spring.xml
file is used.Should it also be registered in the
LogbackLoggingSystem.loadConfiguration
method?The text was updated successfully, but these errors were encountered: