Closed pokhriyalp closed 4 years ago
Hi pokhriyalp,
the appender_by_name() method is part of Log::Log4perl, not Log::Log4perl::Logger: https://github.com/mschilli/log4perl/blob/master/lib/Log/Log4perl.pm#L2436 so if you call Log::Log4perl->appender_by_name("SCREEN") you should receive what you expect. Hope that helps!
There's also an FAQ entry. I'm closing this, but please reopen if there are still problems!
I want to get appender file name using logger object.
I went over doc and it says that I can access appenders using
appender_by_name()
class method. I tried to access it using the command$logger->appender_by_name()
, but it is returning me following errorFollowing is the dump of my logger object: