Bugs item #1686200, was opened at 2007-03-22 10:00 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1686200&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Private: No Submitted By: j vickroy (jvickroy) >Assigned to: Vinay Sajip (vsajip) Summary: logging package failure for NTEventLogHandler Initial Comment: When using a configuration file to initialize a logger, a failure occurs in the logging.config.fileConfig() procedure such that the NTEventLogHandler is not created. The failure is not observed when the NTEventLogHandler is explicitly defined in a script. The attached script and two configuration initialization files demonstrate the failure as seen on a Microsoft Windows XP Pro computer running service pack 2 and Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)]. DETAILED DESCRIPTION: When the attached script is run with EventLog.ini, on my Windows XP computer, the failure appears to occur at line 118: h = apply(klass, args) in File "C:\Python24\lib\logging\config.py" because for: klass: logging.handlers.NTEventLogHandler local variable *args* is: ('logging.config.fileConfig bug test') after line 116: args = cp.get(sectname, "args") but local variable *args* is: logging.config.fileConfig bug test after line 117: args = eval(args, vars(logging)) The behavior for the other two handlers is as follows: klass = logging.StreamHandler args is: (sys.stdout,) ... after line 116 args is: (<open file '<stdout>', mode 'w' at 0x00A1E068>,) ... after line 117 klass = logging.handlers.TimedRotatingFileHandler args is: ('fileConfig-test.log', 'midnight', 1, 3) ... after line 116 args is: ('fileConfig-test.log', 'midnight', 1, 3) ... after line 117 ---------------------------------------------------------------------- >Comment By: Neal Norwitz (nnorwitz) Date: 2007-03-22 22:19 Message: Logged In: YES user_id=33168 Originator: NO Vinay, any ideas? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1686200&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com