Using Log::Log4perl, I need to test for the existence of a log path and
create it if necessary, I had hopes that this might give me what I was
looking for:
my $path =
Log::Log4perl->appender_by_name(
'log4perl.appender.A1.filename');
But I am getting (on the next line):
Use of uninitialized value $path in substitution.
Is there some way to query the class or perhaps the $logger object for
what path and filename it expects from the configuration so I can
created it before it is needed and its absence blows things up?
I would try this with the $logger object itself, but attempting to
instantiate one when the log file's path is missing blows things up.
How do I automate this process so that an arbitrary path and file are
created when my application is deployed into a fresh bare-metal
environment?
--
Hugh Esco
skype: hresco3_ ; 678-921-8186
http://www.CampaignFoundations.com/
Providing Application Hosting, Telephony,
Custom Development and Consulting Services
to Green Candidates, Green Parties and
the non profits working for a just and sustainable future.
if( $insurance->rationing() ) { $people->die(); }
if( isa_ok($self,'Troy::Davis') =~ m/^ok/) { $people->are_whole(); }
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
log4perl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/log4perl-devel