logger.c: Changed the TYPE_ definitions to an enum.