preaction / Log-Any

Simple, fast Perl logging API compatible with any logging system
Other
13 stars 19 forks source link

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

Closed XSven closed 1 year ago

XSven commented 1 year ago

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 commented 1 year ago

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

XSven commented 1 year ago

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