add message attribute to log resource