I have a custom LogManager that uses org.apache.log4j.Category.

Category category = Category.getInstance("abc");
category.addAppender(..........);

In Log4j2, Category was deprecated. How do I fix it?