import logging

def default_logging(grab_log='/tmp/grab.log'):
    """
    Customize logging output to display all log messages
    except grab network logs.

    Redirect grab network logs into file.
    """

    logging.basicConfig(level=logging.DEBUG)
    glog = logging.getLogger('grab')
    glog.propagate = False
    if grab_log:
        hdl = logging.FileHandler(grab_log, 'w')
        glog.addHandler(hdl)

@@ -53,16 +53,47 @@
 rab.log'
+, level=logging.DEBUG, mode='a'
 ):%0A    %22
@@ -265,28 +265,20 @@
 (level=l
-ogging.DEBUG
+evel
 )%0A    gl
@@ -400,11 +400,12 @@
 og, 
-'w'
+mode
 )%0A  

Create additional options for default_logging function