I have a .conf file which has
log4perl.appender.logFile = Log::Log4perl::Appender::File
log4perl.appender.logFile.filename = /myapp/conf/<ENVTAG>myapp.conf
Then, the Perl script consumes it:
Log::Log4perl::init($logConf);
my $logger = Log::Log4perl->get_logger;
$logger->info("Begin");
$logger->info("End");
I'd like to know how to read/change/replace the <'ENVTAG'> token in order to set it to: "dev", "prod", "testing" in the Perl application (regex here?)... Also, how can I edit the "logfile.filename" in the Perl application?
Thanks.