#NEWLINE# def convert_level( self , level ) : #NEWLINE# #INDENT# 'Converts a logbook level into a logging level.' #NEWLINE# if ( self >= logbook . CRITICAL ) : #NEWLINE# #INDENT# return logging . CRITICAL #NEWLINE# #UNINDENT# if ( level >= logbook . ERROR ) : #NEWLINE# #INDENT# return logging . ERROR #NEWLINE# #UNINDENT# if ( level >= logbook . WARNING ) : #NEWLINE# #INDENT# return logging . WARNING #NEWLINE# #UNINDENT# if ( level >= logbook . INFO ) : #NEWLINE# #INDENT# return logging . INFO #NEWLINE# #UNINDENT# return logging . DEBUG