Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AspectJWeaver & java.util.logging

Thanks!  That's exactly what the pointer I needed.  I dug around a little bit more and noticed there is a system property "-Dorg.aspectj.tracing.factory=default" that I can set which ironically is different from the default if nothing is specified.
If there is nothing specified, AspectJ uses the Jdk14Trace class (which delegates to the java 5+ java.util.logging subsystem).  If you specify "default" for the factory, AspectJ uses the `DefaultTraceFactory` class which uses its own internal logging system.

More insight can be found at: https://www.eclipse.org/aspectj/doc/released/pdguide/trace.html

Problem solved!

Thanks,

Eric

On Fri, Nov 27, 2020 at 1:56 AM Andrei Ivanov <andrei.ivanov@xxxxxxxxx> wrote:
Hi,
Reading through the code, I see that TraceFactory seems to initialize by default a Jdk14TraceFactory if there's none specified
in the system property "org.aspectj.tracing.factory". This also means that you can override it and choose a different implementation.

Regards,
Andrei

On Fri, Nov 27, 2020 at 12:40 AM Eric B <ebenzacar@xxxxxxxxx> wrote:
Hi,

I've been forced to revisit a hackish approach that I put together to get AspectJ working in Wildfly a couple of years ago,  It led me to this ticket:


Looking through the code on github, I see that the Jdk14Trace.java class is still in the master branch still leveraging the java.util.logging classes.

Has any work been done to address this?  Is there any workaround that I can apply to have the weaver defer using the logging subsystem until it gets properly initialized in Wildfly?

Thanks,

Eric

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/aspectj-users

Back to the top