in reply to Re: using env vars in Log::Dispatch::Config config files
in thread using env vars in Log::Dispatch::Config config files
I am not sure what you mean?
The data is stored in a config file. I could override this in my perl to over write the values in Log::Dispatch::Config->instance()->{'outputs'}->{'file'}->{'filename'} but this defeats the point of using the file. The intention is to allow users to edit the logger.conf file to change settings rather than having them hard coded.
I am looking for a method of telling the log::dispatch::Config to use the env var to set the filename. I was hoping that the value read back from the file would be expanded when read and take the value of $HOST but instead the string is returned and I create a file called $host.log.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: using env vars in Log::Dispatch::Config config files
by roboticus (Chancellor) on Jun 22, 2012 at 16:00 UTC |