I was tracking down a problem where a log message was not appearing as I
expected, and I found what I thought was surprising behavior.
I set the log level on my top-level Component to ALL. I create an Application
using the component's Context and attach it to the component's default host.
When the component is started, my application's createRoot is called, and I
create the my application router, filters, and resources, passing the
application context to the constructor for each of them.
When I look in the debugger, the parent context for the context in each of these
elements is (correctly) the application context, but the parent logger for the
context logger of each element is the root logger, not the logger in the
application context. Unless I explicitly set the logger for each filter/resource
context, it appears that I don't have any way of controlling logging except
through the root logger.
Can you tell me if this is intended behavior, or if I've somehow set it up
wrong?
Thanks,
-- Jim