Re: [aspectj-users] AspectJWeaver & java.util.logging

2020-11-27 Thread Eric B
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 
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  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:
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=502093
>>
>> Looking through the code on github, I see that the Jdk14Trace.jav
>> a
>> 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@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/aspectj-users
>>
> ___
> aspectj-users mailing list
> aspectj-users@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/aspectj-users
>
___
aspectj-users mailing list
aspectj-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/aspectj-users


Re: [aspectj-users] AspectJWeaver & java.util.logging

2020-11-26 Thread Andrei Ivanov
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  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:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=502093
>
> Looking through the code on github, I see that the Jdk14Trace.jav
> a
> 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@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/aspectj-users
>
___
aspectj-users mailing list
aspectj-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/aspectj-users