#NEWLINE# def _setup( self , app_obj ) : #NEWLINE# #INDENT# super ( LoggingLogHandler , self ) . _setup ( app_obj ) #NEWLINE# if ( self . _meta . namespace is None ) : #NEWLINE# #INDENT# self . _meta . namespace = ( '%s' % self . app . _meta . label ) #NEWLINE# #UNINDENT# self . backend = logging . getLogger ( ( 'cement:app:%s' % self . _meta . namespace ) ) #NEWLINE# if is_true ( self . app . _meta . debug ) : #NEWLINE# #INDENT# self . app . config . set ( self . _meta . config_section , 'level' , 'DEBUG' ) #NEWLINE# #UNINDENT# level = self . app . config . get ( self . _meta . config_section , 'level' ) #NEWLINE# self . set_level ( level ) #NEWLINE# LOG . debug ( ( "logging initialized for '%s' using %s" % ( self . _meta . namespace , self . __class__ . __name__ ) ) )