Skip to content

[docs] Log4j configuration needs to be better documented #10200

Closed

Description

@devinbost

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.

Activity

  1. added
    type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
    on Apr 12, 2021
  2. devinbost commented on Apr 12, 2021

    @devinbost
    ContributorAuthor

    For example, the following Log4j file doesn't emit debug statements for permits from ConsumerImpl, Consumer, or PersistentDispatcherMultipleConsumers

    log4j2.yaml.txt
    (Ignore the .txt extension. That was just to enable uploading it into the Github issue.)

  3. devinbost commented on Apr 12, 2021

    @devinbost
    ContributorAuthor

    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.

  4. codelipenghui commented on Mar 4, 2022

    @codelipenghui
    Contributor

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

  5. locked and limited conversation to collaborators on Dec 7, 2022
  6. converted this issue into a discussion #18785 on Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staletype/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions