def setup(self, level=None, log_file=None, json=None):
        '''
        Load everything up. Note that any arg here will override both
        default and custom settings

        @param level: the log level
        @param log_file: boolean t/f whether to log to a file, else stdout
        @param json: boolean t/f whether to write the logs in json
        '''
        self.settings = self.wrapper.load(self.settings_name)

        my_level = level if level else self.settings['LOG_LEVEL']
        # negate because logger wants True for std out
        my_output = not log_file if log_file else self.settings['LOG_STDOUT']
        my_json = json if json else self.settings['LOG_JSON']
        self.logger = LogFactory.get_instance(json=my_json, stdout=my_output,
                                              level=my_level,
                                              name=self.settings['LOGGER_NAME'],
                                              dir=self.settings['LOG_DIR'],
                                              file=self.settings['LOG_FILE'],
                                              bytes=self.settings['LOG_MAX_BYTES'],
                                              backups=self.settings['LOG_BACKUPS'])

        self.validator = self.extend_with_default(Draft4Validator)
def setup ( self , level = None , log_file = None , json = None ) : self . settings = self . wrapper . load ( self . settings_name ) my_level = level if level else self . settings [ 'LOG_LEVEL' ] my_output = not log_file if log_file else self . settings [ 'LOG_STDOUT' ] my_json = json if json else self . settings [ 'LOG_JSON' ] self . logger = LogFactory . get_instance ( json = my_json , stdout = my_output , level = my_level , name = self . settings [ 'LOGGER_NAME' ] , dir = self . settings [ 'LOG_DIR' ] , file = self . settings [ 'LOG_FILE' ] , bytes = self . settings [ 'LOG_MAX_BYTES' ] , backups = self . settings [ 'LOG_BACKUPS' ] ) self . validator = self . extend_with_default ( Draft4Validator )
Load everything up. Note that any arg here will override both
        default and custom settings

        @param level: the log level
        @param log_file: boolean t/f whether to log to a file, else stdout
        @param json: boolean t/f whether to write the logs in json