code cleanup - fixing compiler warnings
helper method to map log priority values into text
write log priority as readable text