I need Catalyst::Log::Log4perl to produce multiple log files. I have a
Catalyst application that runs batch scripts and needs to generate a
separate log file for each script.
Ideally, I'd like to change the log file name dynamically within a
Catalyst controller each time it's called.
Using a sub{} on filename in the config only runs the sub{} the first
time it loads up the conf -- it doesn't run it after that, so it
doesn't quite work.
log4perl.appender.Logfile = Log::Log4perl::Appender::File
log4perl.appender.Logfile.filename = sub { return get_log_file(); }
Any ideas?
Thanks!
Asim
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/