From: Rob R. <Rob...@no...> - 2005-11-18 16:02:04
|
Hi, I'm using log4perl in a process safe way using Log::Log4perl::Appender::Synchronized for many perl programs to all write to the same log file. Our project has a lot of bash code that has been written. I would like all of these bash scripts to send their log messages and their stdout and stderr to the same log file mentioned above. I need to do this so that log messages do not collide with one another and I cannot afford to pay the startup time that the following perl code takes (about 2 sec on my machine) for each logged message: use Log::Log4perl qw(get_logger :levels); Log::Log4perl->init_and_watch("log.conf", 60); Does anyone have any suggestions? Thanks, Rob -- Rob Redmon NOAA/NGDC 325 Broadway E/GC2 Boulder, Colorado 80305 Tel: (303) 497-4331 Fax: (303) 497-6513 Rob...@no... "Engineering is the art of making what you want from things you can get." |