logger: handle the case when levelno is not in the logcolors dict