I have YAML file which needs to take a variable as an input:
outputters:
- type : DateFileOutputter
name : logfile
level : DEBUG
date_pattern: '%Y%m%d'
trunc : 'false'
dirname : "/home/sameera/workspace/project/log"
filename : "message.log"
formatter :
date_pattern: '%m/%d/%Y %H:%M:%S'
pattern : '%d %l - %m'
type : PatternFormatter
I want to pass dirname
as a parameter, something like:
dirname : "<%= LOGFILE_PATH%>"
My LOGFILE_PATH
is defined in a file called init.rb
.