Re: [log4perl-devel] Having a module inherit log level from caller

2011-07-23 Thread Mike Schilli
Hi Steve, you're using two different loggers, "SCRIPT" and "MODULE". Your script sets the "SCRIPT" logger defined via log4perl.category.SCRIPT = ERROR, script in the configuration to level "INFO" in the main script: $logger->level("INFO"); This causes the main script to

[log4perl-devel] Having a module inherit log level from caller

2011-07-23 Thread Steve Chadsey
I have a script that "use"s various other modules. The script will take a command-line argument that dictates the log level, i.e., "WARN", "ERROR", etc. The script initializes a Log4perl instance using this level. The script calls functions from the external modules, for which I would like to hav