change partition_id to userId
change logging configuration to dictionary based