Hello,
I am attempting to override the DefaultHandler.class, which is present as the root logger’s default handler in the ej.util.logging library. From my understanding, this should technically be possible by including a *.properties.list and a *.types.list file, which both point to a new Handler which I am providing.
The two files I have created are residing in the src/main/resources folder of my library, and include the following:
log.properties.list:
handlers=package.name.SilentHandler
log.types.list:
package.name.SilentHandler
Despite adding these files, when I acquire the property in the library I am developing via System.getProperty(“handlers”), it still returns DefaultHandler.class (and consequently, the class is being used by the ej.util.logging library). I have also tried adding these files directly into the project at which the developed library is being imported, but it still was not being overridden.
Is there a step that I am missing, or a different way of going about achieving this goal?
As a side note, the .jar for the MicroEj logging library seems to have a logging.system.properties file within it. I am wondering if this may be contributing to the issue of not being able to override the property value.
Thank you very much,
Matthew