def _wrappedLogPrefix(wrapper, wrapped):
 if ILoggingContext.providedBy(wrapped):
  logPrefix = wrapped.logPrefix()
 else:
  logPrefix = wrapped.__class__.__name__
 return ('%s (%s)' % (logPrefix, wrapper.__class__.__name__))

def _wrappedLogPrefix ( wrapper , wrapped ) : if ILoggingContext . providedBy ( wrapped ) : logPrefix = wrapped . logPrefix ( ) else : logPrefix = wrapped . __class__ . __name__ return ( '%s (%s)' % ( logPrefix , wrapper . __class__ . __name__ ) )
compute a log prefix for a wrapper and the object it wraps .