#NEWLINE# def __init__( self , logger = None , level = logbook . NOTSET , filter = None , bubble = False ) : #NEWLINE# #INDENT# logbook . Handler . __init__ ( self , level , filter , bubble ) #NEWLINE# if ( logger is None ) : #NEWLINE# #INDENT# logger = logging . getLogger ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( logger , string_types ) : #NEWLINE# #INDENT# logger = logging . getLogger ( logger ) #NEWLINE# #UNINDENT# #UNINDENT# self . logger = logger