I am instantiating a log4j object inside a class that inherits most of the methods and attributes of the parent class. Right now I am only receiving log messages from a subclass. How can I get log messages for output in superclass and subclass?
EDIT: The way I'm doing it is that I have an instance variable in both the subclass and the superclass, so it looks something like this:
public class SuperClass { private static final Logger logger = Logger.getLogger(SuperClass.class); }
And the same goes for the subclass.
My log4j configuration:
#
Brian source share