This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stevepole
Recipients
Date 2006-09-20.04:06:33
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=455201

I understand this is not a bug, it's by design.

It still looks like a bug, though. Please consider the
following code:

import logging

defaultLoglevel = logging.DEBUG
newLoglevel     = 'WARNING'

logging.basicConfig (level = defaultLoglevel, format =
'%(message)s')
print logging.getLevelName (logging.getLogger
().getEffectiveLevel ())
print logging.getLogger ().getEffectiveLevel ()
logging.getLogger ().setLevel (newLoglevel.upper ())
print logging.getLevelName (logging.getLogger
().getEffectiveLevel ())
print logging.getLogger ().getEffectiveLevel ()

Output:
DEBUG
10
30
WARNING

So the result basically inverts. Is that really the way it
is supposed to work ?

Or am I misunderstanding something ?
History
Date User Action Args
2007-08-23 14:25:06adminlinkissue1008295 messages
2007-08-23 14:25:06admincreate