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 2021/04/12 19:49:56 UTC

[GitHub] [pulsar] devinbost opened a new issue #10200: [docs] Log4j configuration needs to be better documented

devinbost opened a new issue #10200:
URL: https://github.com/apache/pulsar/issues/10200


   We currently don't have much documentation around how to configure Log4j debugging for Pulsar, and the log4j docs are confusing. For example, I'm trying to enable DEBUG logging for Pulsar, but we're having trouble getting debug statements to show up in our rolling log. The Pulsar docs don't provide sufficient explanation around how to do this. 


-- 
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.

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



[GitHub] [pulsar] devinbost commented on issue #10200: [docs] Log4j configuration needs to be better documented

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


   For example, the following Log4j file doesn't emit debug statements for permits from `ConsumerImpl`, `Consumer`, or `PersistentDispatcherMultipleConsumers`
   
   [log4j2.yaml.txt](https://github.com/apache/pulsar/files/6299567/log4j2.yaml.txt)
   


-- 
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.

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



[GitHub] [pulsar] devinbost edited a comment on issue #10200: [docs] Log4j configuration needs to be better documented

Posted by GitBox <gi...@apache.org>.
devinbost edited a comment on issue #10200:
URL: https://github.com/apache/pulsar/issues/10200#issuecomment-818155127






-- 
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.

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



[GitHub] [pulsar] devinbost commented on issue #10200: [docs] Log4j configuration needs to be better documented

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


   I tried hard-coding `"debug"` in place of `"${sys:pulsar.log.level}"` in this part of the file:
   ```
   Root:
         level: debug
         additivity: true
         AppenderRef:
           - ref: "${sys:pulsar.log.appender}"
             level: "${sys:pulsar.log.level}"
           - ref: Prometheus
             level: info
   ```
   but the only classes that appear to be emitting debug-level information are bookkeeper classes. 


-- 
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.

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



[GitHub] [pulsar] devinbost commented on issue #10200: [docs] Log4j configuration needs to be better documented

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


   I was able to get debug statements after hard coding `"debug"` in place of `"${sys:pulsar.log.level}"` in this part of the log4j2.yaml file:
   ```
   Root:
         level: debug
         additivity: true
         AppenderRef:
           - ref: "${sys:pulsar.log.appender}"
             level: "${sys:pulsar.log.level}"
           - ref: Prometheus
             level: info
   ```
   However, I haven't been able to get debug logging on the functions. 


-- 
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.

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



[GitHub] [pulsar] devinbost removed a comment on issue #10200: [docs] Log4j configuration needs to be better documented

Posted by GitBox <gi...@apache.org>.
devinbost removed a comment on issue #10200:
URL: https://github.com/apache/pulsar/issues/10200#issuecomment-818278332


   I tried hard-coding `"debug"` in place of `"${sys:pulsar.log.level}"` in this part of the file:
   ```
   Root:
         level: debug
         additivity: true
         AppenderRef:
           - ref: "${sys:pulsar.log.appender}"
             level: "${sys:pulsar.log.level}"
           - ref: Prometheus
             level: info
   ```
   but the only classes that appear to be emitting debug-level information are bookkeeper classes. 


-- 
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.

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



[GitHub] [pulsar] codelipenghui commented on issue #10200: [docs] Log4j configuration needs to be better documented

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


   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