(level, levelName)
Associate 'levelName' with 'level'.

    This is used when converting levels to text during message formatting.
Associate 'levelName' with 'level'.
Associate levelName with level .
def addLevelName(level, levelName):
    """
    Associate 'levelName' with 'level'.

    This is used when converting levels to text during message formatting.
    """
    _acquireLock()
    try:    #unlikely to cause an exception, but you never know...
        _levelToName[level] = levelName
        _nameToLevel[levelName] = level
    finally:
        _releaseLock()
def addLevelName ( level , levelName ) : _acquireLock ( ) try : #unlikely to cause an exception, but you never know... _levelToName [ level ] = levelName _nameToLevel [ levelName ] = level finally : _releaseLock ( )