in reply to using env vars in Log::Dispatch::Config config files

I've never used it, but from the Log::Dispatch SYNOPSIS, it looks like you can set the filename in your Perl code:
my $log = Log::Dispatch->new( outputs => [ [ filename => "log/$ENV{HOST}.log" ], ], );
Maybe you can set most of your parameters in the config file, and just this one in your Perl code.

Replies are listed 'Best First'.
Re^2: using env vars in Log::Dispatch::Config config files
by Grafne (Initiate) on Jun 26, 2012 at 09:33 UTC

    I am wondering if I can read back the filename, then expand it in my perl, then reassign it to the filename as you show above.

    I would like to set them all from the config file to keep things neat. Tidy code is good code ;-)