Skip to content

Unable to turn off logging for a particular package #3628

@shanman190

Description

@shanman190

When configuring logging using Spring Boot's LoggingApplicationListener and SnakeYAML, you're not able to turn off logging for a specific package. This is because of how SnakeYAML handles the word 'OFF' and represents that value as a boolean instead.

My suggestion would be to add some code to the LoggingApplicationListener around setting the LogLevel to check if the level comes in as a String with the value of false and act as if it means 'OFF'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions