Add Log Fields dynamically at run time

I’m attempting to add fields to the log dynamically. When I use the AddLogFields activity, the name of each field is added at design time. Can I add a field while a process is running? I’d like to be able to pass in a key value pair and have AddLogFields add a field to the log with the Key as the fieldname and the value as the fields’ value.