On the local colorings of graphs