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

getter method for the category field of a logger is missing #86

Closed
XSven opened this issue Apr 7, 2021 · 0 comments · Fixed by #88 or #91
Closed

getter method for the category field of a logger is missing #86

XSven opened this issue Apr 7, 2021 · 0 comments · Fixed by #88 or #91

Comments

@XSven
Copy link
Contributor

XSven commented Apr 7, 2021

The factory method

my $logger = Log::Any->get_logger(category => ..., proxy_class => ..., ...);

has some singnificant fields like category and proxy_class and ... Could you provide corresonding getters in one of the next releases? I do not want to use

$logger->{category}

because this makes an assumption about the internals of the logger datastructure.

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