[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Verbose logging to a file

Wouldn't it be easier to use something like logback or is this not possible due to the nature of AspectJ LTW?

regards,

Wim

2008/11/27 Andy Clement <andrew.clement@xxxxxxxxx>
Hmmm, you can do it with your own message handler.  Not sure what other options there are right now.  Maybe raise an enhancement request to make this more straightforward

http://www.eclipse.org/aspectj/doc/released/devguide/ltw-configuration.html

aop.xml:

<weaver options="-verbose -showWeaveInfo -XmessageHandlerClass:MyMessageHandler"/>

-- implementation --

package org.aspectj.bridge;

import org.aspectj.bridge.IMessage.Kind;

public class MyMessageHandler implements IMessageHandler {

    public void dontIgnore(Kind kind) {}

    public boolean handleMessage(IMessage message) throws AbortException {
        // write it to a file
        return false;
    }

    public void ignore(Kind kind) {    }

    public boolean isIgnoring(Kind kind) {
        return false;
    }

}

Andy.

2008/11/27 Wim Deblauwe <wim.deblauwe@xxxxxxxxx>
Hi,

is there a way to output the verbose logging (of the LTW) to a file?

regards,

Wim

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users