#NEWLINE# def _AppLogsLocation( self ) : #NEWLINE# #INDENT# 'Find the source location responsible for calling the logging API.' #NEWLINE# if ( not features . IsEnabled ( 'LogsWriteSourceLocation' ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# def IsLogging( f ) : #NEWLINE# #INDENT# return f . f_code . co_filename . endswith ( '/logging/__init__.py' ) #NEWLINE# #UNINDENT# f = inspect . currentframe ( ) #NEWLINE# while ( f and ( not IsLogging ( f ) ) ) : #NEWLINE# #INDENT# f = f . f_back #NEWLINE# #UNINDENT# while ( f and IsLogging ( f ) ) : #NEWLINE# #INDENT# f = f . f_back #NEWLINE# #UNINDENT# return ( inspect . getframeinfo ( f ) [ : 3 ] if f else None )