python_modules/dagster/dagster/core/execution.py
def _create_context_free_log(run_config, pipeline_def):
    '''In the event of pipeline initialization failure, we want to be able to log the failure
    without a dependency on the ExecutionContext to initialize DagsterLog
    '''
    check.inst_param(run_config, 'run_config', RunConfig)
    check.inst_param(pipeline_def, 'pipeline_def', PipelineDefinition)

    # Use the default logger
    loggers = [define_colored_console_logger('dagster')]
    if run_config.event_callback:
        loggers += [construct_event_logger(run_config.event_callback)]
    elif run_config.loggers:
        loggers += run_config.loggers

    return DagsterLog(run_config.run_id, get_logging_tags(None, run_config, pipeline_def), loggers)
def _create_context_free_log(run_config, pipeline_def):
    '''In the event of pipeline initialization failure, we want to be able to log the failure
    without a dependency on the ExecutionContext to initialize DagsterLog
    '''
    check.inst_param(run_config, 'run_config', RunConfig)
    check.inst_param(pipeline_def, 'pipeline_def', PipelineDefinition)

    # Use the default logger
    loggers = [define_colored_console_logger('dagster')]
    if run_config.event_callback:
        loggers += [construct_event_logger(run_config.event_callback)]
    elif run_config.loggers:
        loggers += run_config.loggers

    return DagsterLog(run_config.run_id, get_logging_tags(None, run_config, pipeline_def), loggers)
def _create_context_free_log ( run_config , pipeline_def ) : check . inst_param ( run_config , 'run_config' , RunConfig ) check . inst_param ( pipeline_def , 'pipeline_def' , PipelineDefinition ) # Use the default logger loggers = [ define_colored_console_logger ( 'dagster' ) ] if run_config . event_callback : loggers += [ construct_event_logger ( run_config . event_callback ) ] elif run_config . loggers : loggers += run_config . loggers return DagsterLog ( run_config . run_id , get_logging_tags ( None , run_config , pipeline_def ) , loggers )
In the event of pipeline initialization failure, we want to be able to log the failure
    without a dependency on the ExecutionContext to initialize DagsterLog
In the event of pipeline initialization failure we want to be able to log the failure without a dependency on the ExecutionContext to initialize DagsterLog