-
Notifications
You must be signed in to change notification settings - Fork 19
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
Can't locate object method "more_logging" via package "Log::Any::Proxy" #81
Comments
There's no |
My application has a Getopt::Long based command line interface with a "v"erbosity option that should increase the log level from INFO to DEBUG (-v) to TRACE (-v -v). Apart from this specific use case my question is a general one because we have used Log::Log4perl directly before and we are no going to switch over to Log::Any. Some of the methods like $logger->logdie(...) we could simply avoid using die($logger->fatal(...)) but others like more_logging() cannot be bypassed, right?! |
Not at the moment. I could add support for that to the Adaptor (Log::Any::Adaptor::Log4perl), but it wouldn't make much sense on the Proxy. I think, though, what you want might be more like:
Log::Any can't prevent all interfacing with the adaptor class. It tries to make library code not have to worry about which adaptor the consuming system is using. Your main script that initializes everything may still need to call Log::Log4perl methods (like Adding
But, there might be some other better way of adding that support... Let me know what you'd like to try! |
|
I have thought about this challenge again. For me Log::Any in perl is similar to slf4j in Java. After reading this I am convinced that this issue can be closed! |
I am reopening this issue because I have understood it better and got a new perspective on it:
Why is the real logger not a public attribute of either P.S. Maybe the method |
I have an application
I known that
Log::Any
s standard log production API doesn't know anything about theLog::Log4perl
specific methodmore_logging()
, but I thought that unknown method calls are delegated to the chosen adapter that isLog::Log4perl
in my case?!The text was updated successfully, but these errors were encountered: