You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/12/10 03:43:25 UTC

[GitHub] [pulsar] vagetablechicken opened a new issue, #18861: [Doc] customizing log levels for java functions is not clear

vagetablechicken opened a new issue, #18861:
URL: https://github.com/apache/pulsar/issues/18861

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### What issue do you find in Pulsar docs?
   
   Following the step 1 https://github.com/apache/pulsar/blob/0d707aec92595868192380758a46f8f02886128f/site2/docs/functions-develop-log.md?plain=1#L57-L64
   I've changed the property `pulsar.log.level` to debug in `functions_log4j2.xml`.
   
   But the step 2 is confused. The root log level is hard code in file https://github.com/apache/pulsar/blob/ac7a34fe757fd8acaf7b87aac427b9e515b0aa7c/conf/functions_log4j2.xml#L123
   
   But the doc says the level is `${sys:pulsar.log.level}`
   https://github.com/apache/pulsar/blob/0d707aec92595868192380758a46f8f02886128f/site2/docs/functions-develop-log.md?plain=1#L66-L76
   
   So I forgot to change the root log level, can't get the debug level log, spent so mujch time to debug.
   
   ### What is your suggestion?
   
   If we should change the root logger level, the doc should remind us. Or can we change the root logger level to `${sys:pulsar.log.level}`?
   
   Or perhaps it should be `${sys:pulsar.log.root.level}`, like 
   https://github.com/apache/pulsar/blob/0d707aec92595868192380758a46f8f02886128f/conf/log4j2.yaml#L134-L141
   
   ### Any reference?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] github-actions[bot] commented on issue #18861: [Doc] customizing log levels for java functions is not clear

Posted by github-actions.
github-actions[bot] commented on issue #18861:
URL: https://github.com/apache/pulsar/issues/18861#issuecomment-1407254165

   The issue had no activity for 30 days, mark with Stale label.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] AnonHxy closed issue #18861: [Doc] customizing log levels for java functions is not clear

Posted by "AnonHxy (via GitHub)" <gi...@apache.org>.
AnonHxy closed issue #18861: [Doc] customizing log levels for java functions is not clear
URL: https://github.com/apache/pulsar/issues/18861


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] freeznet commented on issue #18861: [Doc] customizing log levels for java functions is not clear

Posted by GitBox <gi...@apache.org>.
freeznet commented on issue #18861:
URL: https://github.com/apache/pulsar/issues/18861#issuecomment-1366317831

   @vagetablechicken nice catch and I see you have checked the ` I'm willing to submit a PR!` box, so I will assign this task to you.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] RobertIndie commented on issue #18861: [Doc] customizing log levels for java functions is not clear

Posted by GitBox <gi...@apache.org>.
RobertIndie commented on issue #18861:
URL: https://github.com/apache/pulsar/issues/18861#issuecomment-1358907129

   @vagetablechicken Thanks for your issue!
   @freeznet Could you take a look at this issue? I think it may be the log configuration issue that we need to fix.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org