If my logging directory (/home/hss/Data/log/DataImport.log
) does not exist when log4perl is initializing, then I get this error:
Cannot write to '/home/hss/Data/log/DataImport.log': No such file or directory
Is there a way to make it create the directory by itself without me having to specify the directory anywhere except in my log.conf file?