Apache Mod-Python - Multiple logging strange feature with mod_python / Apache --- PLEASE

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > September 2005 > Multiple logging strange feature with mod_python / Apache --- PLEASE





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Multiple logging strange feature with mod_python / Apache --- PLEASE
Sasha Prikhodko

2005-09-05, 7:45 am

Dear developers,

i use logging module in mod_python environment
according to the following standard scheme:

logger = logging.getLogger(logger_name)

fh = logging.FileHandler(log_path)
logger.addHandler(fh)



and after some http server idle time i get 2 identical records in the
log file,
3 records, ..., 5 records, ...
until i restart httpd

Probably, this happens because Python VM is unloaded but
logger facilities remains living somewhere inside Apache, and next time
VM is started i _add another file handler with the same name_ .

Sincerely,
Alex


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com