@step('I use the log record configuration')
def step_use_log_record_configuration(context):
 assert context.table, 'REQUIRE: context.table'
 context.table.require_columns(['property', 'value'])
 for row in context.table.rows:
  property_name = row['property']
  value = row['value']
  if (property_name == 'format'):
   context.log_record_format = value
  elif (property_name == 'datefmt'):
   context.log_record_datefmt = value
  else:
   raise KeyError(('Unknown property=%s' % property_name))

@ step ( 'I use the log record configuration' ) def step_use_log_record_configuration ( context ) : assert context . table , 'REQUIRE: context.table' context . table . require_columns ( [ 'property' , 'value' ] ) for row in context . table . rows : property_name = row [ 'property' ] value = row [ 'value' ] if ( property_name == 'format' ) : context . log_record_format = value elif ( property_name == 'datefmt' ) : context . log_record_datefmt = value else : raise KeyError ( ( 'Unknown property=%s' % property_name ) )
define log record configuration parameters .