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 2020/06/11 12:29:39 UTC

[GitHub] [pulsar] larshelge opened a new issue #7242: Documentation for logging to file in standalone mode

larshelge opened a new issue #7242:
URL: https://github.com/apache/pulsar/issues/7242


   I want to configure Apache Pulsar to log output to file when in standalone mode. I am reading the documentation but it is not clear how to achieve this.
   
   I am running Pulsar in standalone mode from a `systemd` service, with an exec command like this:
   
   ```sh
   /var/lib/apache-pulsar/bin/pulsar standalone
   ```
   
   Now the Pulsar log configuration is documented here, and specifies that you can use configuration properties like pulsar.root.logger to configure logging through Log4J.
   
   However what is not clear is where do you define these log-related properties? In which configuration file do they go?
   
   Or should you make changes in `log4j2.yaml` directly? This is not covered in the documentation as far as I can see. Changing e.g. `pulsar.routing.appender.default` to `RollingFile` does not seem to have an effect.
   
   Describing the complete steps of enabling logging to file in standalone mode would be very helpful and appreciated.
   
   Thanks in advance for any assistance. 


----------------------------------------------------------------
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] jiazhai closed issue #7242: Documentation for logging to file in standalone mode

Posted by GitBox <gi...@apache.org>.
jiazhai closed issue #7242:
URL: https://github.com/apache/pulsar/issues/7242


   


----------------------------------------------------------------
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] Jennifer88huang commented on issue #7242: Documentation for logging to file in standalone mode

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


   @zymap sure, we're more than glad to do that.


----------------------------------------------------------------
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] zymap commented on issue #7242: Documentation for logging to file in standalone mode

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


   @Jennifer88huang @Anonymitaet Could you please help me to update the example to here: http://pulsar.apache.org/docs/en/2.2.1/reference-configuration/#log4j


----------------------------------------------------------------
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] Jennifer88huang commented on issue #7242: Documentation for logging to file in standalone mode

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


   @larshelge Thank you for raising the issue. Yes,  you can  configure it directly in the `log4j2.yaml` file. I've added a reference in #9365. If you have further issue, feel free to leave comments there.
   
   To make your configuration take effect, you need to configure it in [log4j2.yaml](https://github.com/apache/pulsar/blob/d557e0aa286866363bc6261dec87790c055db1b0/conf/log4j2.yaml#L155) file, and remember to uncomment it.


----------------------------------------------------------------
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] zymap commented on issue #7242: Documentation for logging to file in standalone mode

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


   @larshelge Here has an example to change the log level or something else. If you want to configure other classes, you need to change the `name` to the class you want to apply to.
   https://github.com/apache/pulsar/blob/d557e0aa286866363bc6261dec87790c055db1b0/conf/log4j2.yaml#L155


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