add categories to loggers. fix #370