Yes. On Tue, Apr 19, 2016 at 4:07 PM, Munagala Ramanath <[email protected]> wrote:
> Conversely, if org.apache is set to DEBUG and org.apache.apex is set to > INFO, > will we see similar behavior, i.e. all classes in sub-packages of > org.apache.apex > log at INFO but all classes that are subpackages of org.apache but not > org.apache.apex > log at DEBUG ? > > Ram > > On Tue, Apr 19, 2016 at 2:30 PM, Chandni Singh <[email protected]> > wrote: > > > Hi, > > > > Initially when DTLoggerFactory was created it's behavior was not very > well > > defined with respect to packages and sub-packages. > > > > As we are moving to org.apache.apex package, I am having trouble setting > > log level to DEBUG for all org.apache.apex.* classes. > > > > I suspect this is because in some log4j.properties org.apache=INFO > > overrides org.apache.apex=DEBUG and also the order in which these entries > > are encountered changes the behavior. > > > > We need to fix this and this is what I am thinking of doing. > > > > Packages are represented as a prefix tree (trie). For example: > > org > > | > > apache (INFO) > > | > > apex (DEBUG) > > > > If org.apache is set to INFO but org.apache.apex is set to DEBUG then all > > classes which are sub-packages of org.apache.apex will log at DEBUG level > > > > Classes which are sub-packages of org.apache but not org.apache.apex will > > log at INFO level. > > > > Will create a JIRA for this and start the work soon. > > > > Thanks, > > Chandni > > >
