#NEWLINE# def get_moai_log( ) : #NEWLINE# #INDENT# log = logging . getLogger ( 'moai' ) #NEWLINE# log . setLevel ( logging . DEBUG ) #NEWLINE# handler = logging . handlers . RotatingFileHandler ( 'moai.log' ) #NEWLINE# handler . setFormatter ( logging . Formatter ( '%(asctime)s - %(name)s - %(levelname)s - %(message)s' ) ) #NEWLINE# log . addHandler ( handler ) #NEWLINE# return log