Merged logging
Added macro priorities