Skip to main content

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

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



Back to the top