#NEWLINE# def __init__( self , predicate = None , output = sys . stderr , clock = time , prefix = '' ) : #NEWLINE# #INDENT# '\n      If predicate specified, it should take a "verbosity" integer and determine whether\n      or not to log, e.g.\n\n        def predicate(verbosity):\n          try:\n            return verbosity < int(os.environ.get(\'APP_VERBOSITY\', 0))\n          except ValueError:\n            return False\n\n      output defaults to sys.stderr, but can take any file-like object.\n    ' #NEWLINE# self . _predicate = ( predicate or ( lambda verbosity : True ) ) #NEWLINE# self . _length = None #NEWLINE# self . _output = output #NEWLINE# self . _isatty = ( getattr ( output , 'isatty' , False ) and output . isatty ( ) ) #NEWLINE# self . _lock = threading . RLock ( ) #NEWLINE# self . _local = threading . local ( ) #NEWLINE# self . _clock = clock #NEWLINE# self . _prefix = prefix