ethqunzhong commented on a change in pull request #14200:
URL: https://github.com/apache/pulsar/pull/14200#discussion_r806540190
##########
File path: conf/log4j2.yaml
##########
@@ -134,7 +134,6 @@ Configuration:
additivity: true
AppenderRef:
- ref: "${sys:pulsar.log.appender}"
- level: "${sys:pulsar.log.level}"
Review comment:
as default `pulsar.log.level=info`
i have do a test in product env as follow:
<img width="1022" alt="image"
src="https://user-images.githubusercontent.com/16517186/154014948-2d2547f2-7f1b-4943-a0e2-a8096d6abd1a.png">
remove this item seems do not change default log4j behavior.
as answer in
[[stackoverflow:programmatically-change-log-level-in-log4j2](https://stackoverflow.com/questions/23434252/programmatically-change-log-level-in-log4j2)
:
i have try all mentioned way to change logger level by programmatically way,
it not work unless remove `level: "${sys:pulsar.log.level}"`
Have you ever had similar problems?
##########
File path: conf/log4j2.yaml
##########
@@ -134,7 +134,6 @@ Configuration:
additivity: true
AppenderRef:
- ref: "${sys:pulsar.log.appender}"
- level: "${sys:pulsar.log.level}"
Review comment:
i have set `pulsar.log.level=warn` for test. but not what i expected.
described as this issue #14298
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]