https_server.py
def init_logger(debug_on):
    """Initializes the private module variable logger

    Adds the file formatter and logging file to the default logging
    configuration.

    Args:
        debug_on (bool): boolean determining if debug mode is set via the
            command line

    Returns:
        void
    """

    global _LOGGER

    # prod-level stdout
    log_conf.LOGGING_CONFIG["handlers"]["consoleHandler"]["formatter"] = "fileFormatter"
    log_conf.LOGGING_CONFIG["handlers"]["fileHandler"]["filename"] = "%s/%s" % (LOG_DIR, LOG_FNAME)
    log_conf.LOGGING_CONFIG["handlers"]["fileHandler"]["maxBytes"] = ROLLOVER_BYTES

    if not os.path.isdir(LOG_DIR):
        os.mkdir(LOG_DIR)

    logging.config.dictConfig(log_conf.LOGGING_CONFIG)

    if debug_on:
        _LOGGER = logging.getLogger("debug")
    else:
        _LOGGER = logging.getLogger("user")
    _LOGGER.info("Logger created")
    _LOGGER.debug("Debug On")
Initializes the private module variable logger

    Adds the file formatter and logging file to the default logging
    configuration.

    Args:
        debug_on (bool): boolean determining if debug mode is set via the
            command line

    Returns:
        void
    
Initializes the private module variable logger
Adds the file formatter and logging file to the default logging
configuration.
Initializes the private module variable logger Adds the file formatter and logging file to the default logging configuration .
def init_logger(debug_on):
    global _LOGGER
    log_conf.LOGGING_CONFIG["handlers"]["consoleHandler"]["formatter"] = "fileFormatter"
    log_conf.LOGGING_CONFIG["handlers"]["fileHandler"]["filename"] = "%s/%s" % (LOG_DIR, LOG_FNAME)
    log_conf.LOGGING_CONFIG["handlers"]["fileHandler"]["maxBytes"] = ROLLOVER_BYTES
    if not os.path.isdir(LOG_DIR):
        os.mkdir(LOG_DIR)
    logging.config.dictConfig(log_conf.LOGGING_CONFIG)
    if debug_on:
        _LOGGER = logging.getLogger("debug")
    else:
        _LOGGER = logging.getLogger("user")
    _LOGGER.info("Logger created")
    _LOGGER.debug("Debug On")
def init_logger ( debug_on ) : global _LOGGER log_conf . LOGGING_CONFIG [ "handlers" ] [ "consoleHandler" ] [ "formatter" ] = "fileFormatter" log_conf . LOGGING_CONFIG [ "handlers" ] [ "fileHandler" ] [ "filename" ] = "%s/%s" % ( LOG_DIR , LOG_FNAME ) log_conf . LOGGING_CONFIG [ "handlers" ] [ "fileHandler" ] [ "maxBytes" ] = ROLLOVER_BYTES if not os . path . isdir ( LOG_DIR ) : os . mkdir ( LOG_DIR ) logging . config . dictConfig ( log_conf . LOGGING_CONFIG ) if debug_on : _LOGGER = logging . getLogger ( "debug" ) else : _LOGGER = logging . getLogger ( "user" ) _LOGGER . info ( "Logger created" ) _LOGGER . debug ( "Debug On" )
Initializes the private module variable logger
Adds the file formatter and logging file to the default logging
configuration.
Initializes the private module variable logger Adds the file formatter and logging file to the default logging configuration .
"""Initializes the private module variable logger

    Adds the file formatter and logging file to the default logging
    configuration.

    Args:
        debug_on (bool): boolean determining if debug mode is set via the
            command line

    Returns:
        void
    """ # prod-level stdout
None
debug_on
boolean determining if debug mode is set via the
command line
boolean determining if debug mode is set via the command line