fix wrong array boundary for logger id array
add attrribute for gcc printf argument checking
unify level validation
correct color names in header for level coloring