Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] how to get the root logger? #90

Closed
XSven opened this issue Nov 10, 2022 · 2 comments · Fixed by #91
Closed

[question] how to get the root logger? #90

XSven opened this issue Nov 10, 2022 · 2 comments · Fixed by #91

Comments

@XSven
Copy link
Contributor

XSven commented Nov 10, 2022

Using Log::Log4perl the root logger has an empty string category (https://metacpan.org/pod/Log::Log4perl#Shortcuts). Passing an empty string as a category to Log::Any::get_logger() leads to an exception (L52). My question is now how to get the root logger using Log::Any::get_logger()?

@preaction
Copy link
Owner

What happens if you change L52 to check defined instead of truthiness? If that works, sounds like a good PR.

@XSven
Copy link
Contributor Author

XSven commented Nov 19, 2022

Would appreciate if you could give attention to my pull request #91. Thx.

preaction added a commit that referenced this issue Nov 22, 2022
  [Fixed]

  - Fixed proxy not exposing 'category' attribute (#86). Thanks
    @andrew-grechkin!
  - Fixed not being able to get a proxy for the "root" category (empty
    string) (#90). Thanks @XSven!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants