Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] print out log and debug messages
[QVTo] print out log and debug messages [message #108301] Tue, 14 July 2009 10:16 Go to next message
Orlando Ferrante is currently offline Orlando FerranteFriend
Messages: 8
Registered: July 2009
Junior Member
Hi all,
I developed an headless eclipse application that runs a m2m
transformation invoking QVTo using the TransformationExecutor class.
Is there a way to redirect qvto debug and log messages to a specific
OutputStream (or a Writer?)?
Thanks
Orlando
Re: [QVTo] print out log and debug messages [message #108332 is a reply to message #108301] Tue, 14 July 2009 16:46 Go to previous messageGo to next message
Radomil Dvorak is currently offline Radomil DvorakFriend
Messages: 249
Registered: July 2009
Senior Member
Hi Orlando,

You can assign a custom logger to the execution context.
A writer based logger is already available as
org.eclipse.m2m.qvt.oml.util.WriterLog.

Just do something like this.
ExecutionContextImpl ctx = new ExecutionContextImpl();
ctx.setLog(new WriterLog(new PrintWriter(System.out)));

Regards,
/Radek

On Tue, 14 Jul 2009 12:16:37 +0200, Orlando Ferrante
<oferrante@parades.rm.cnr.it> wrote:

> Hi all, I developed an headless eclipse application that runs a m2m
> transformation invoking QVTo using the TransformationExecutor class.
> Is there a way to redirect qvto debug and log messages to a specific
> OutputStream (or a Writer?)?
> Thanks
> Orlando
>
Re: [QVTo] print out log and debug messages [message #108347 is a reply to message #108332] Tue, 14 July 2009 17:52 Go to previous message
Orlando Ferrante is currently offline Orlando FerranteFriend
Messages: 8
Registered: July 2009
Junior Member
Thanks a lot Radek,
I instantiated the context using "ExecutionContext context = new
ExecutionContextImpl()" and so I didn't see the setLog method defined in
ExecutionContextImpl! Thanks again!
Orlando
Previous Topic:add an element to a sequence
Next Topic:ATL:Beginner to ATL
Goto Forum:
  


Current Time: Thu Mar 28 17:02:45 GMT 2024

Powered by FUDForum. Page generated in 0.07049 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top