Skip to content
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

Log level in lowercase works for quarkus.log.category."whatever".level, but doesn't work for quarkus.log.level #15495

Closed
vladykin opened this issue Mar 5, 2021 · 0 comments · Fixed by #15505
Assignees
Labels
area/logging kind/enhancement New feature or request
Milestone

Comments

@vladykin
Copy link

vladykin commented Mar 5, 2021

Describe the bug

Quarkus supports setting root log level and per-category log levels:

quarkus.log.level=INFO
quarkus.log.category.\"io.quarkus\".level=DEBUG

Level written in lowercase for per-category log level is accepted by quarkus and works:

quarkus.log.category."io.quarkus".level=debug

But for root log level this does not work:

quarkus.log.level=debug

Quarkus refuses to start with the following error:

One or more configuration errors have prevented the application from starting. The errors are:
  - Unknown level "debug"

I expected that both root and per-category log levels support the same values: either uppercase only, or both upper and lowercase.

To Reproduce

  1. Create sample project with https://code.quarkus.io/
  2. Add the following to application.properties:
quarkus.log.level=debug
quarkus.log.category."io.quarkus".level=debug

Environment (please complete the following information):

  • Output of uname -a: Linux 5.4.48-gentoo #2 SMP Wed Oct 7 20:15:36 MSK 2020 x86_64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz GenuineIntel GNU/Linux
  • Output of java -version: openjdk version "11.0.9.1" 2020-11-04 LTS
  • Quarkus version or git rev: 1.12.1.Final
  • Build tool (ie. output of mvnw --version or gradlew --version): Apache Maven 3.6.3
@vladykin vladykin added the kind/bug Something isn't working label Mar 5, 2021
@gsmet gsmet added area/logging kind/enhancement New feature or request and removed kind/bug Something isn't working triage/needs-triage labels Mar 5, 2021
@gsmet gsmet self-assigned this Mar 5, 2021
gsmet added a commit to gsmet/quarkus that referenced this issue Mar 5, 2021
@quarkus-bot quarkus-bot bot added this to the 1.13 - master milestone Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logging kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants