Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Redirect log to stdout in standalone QVTo-script
Redirect log to stdout in standalone QVTo-script [message #1216202] Thu, 28 November 2013 11:12 Go to next message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 343
Registered: August 2013
Senior Member
Hi

I implemented a standalone QVTo-script according to this example:
http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava

There are log() invocations in the script.

Could you point me out how to redirect this log-output into stdout of my Java-program? Thanks!
Re: Redirect log to stdout in standalone QVTo-script [message #1219220 is a reply to message #1216202] Mon, 02 December 2013 16:43 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Since no one better informed is answering...

Have a look at QVTo's Log and WriterLog.

Regards

Ed Willink

On 28/11/2013 11:12, Denis Nikiforov wrote:
> Hi
>
> I implemented a standalone QVTo-script according to this example:
> http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava
>
> There are log() invocations in the script.
>
> Could you point me out how to redirect this log-output into stdout of
> my Java-program? Thanks!
Re: Redirect log to stdout in standalone QVTo-script [message #1219473 is a reply to message #1219220] Wed, 04 December 2013 04:50 Go to previous message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 343
Registered: August 2013
Senior Member
Hi

Thanks! Here is a code for newbies like me Smile
ExecutionContextImpl context = new ExecutionContextImpl();
context.setLog(new WriterLog(new OutputStreamWriter(System.out)));
Previous Topic:Does Eclipse QVTo implementation support typedef?
Next Topic:How to create javax.xml.namespace.QName?
Goto Forum:
  


Current Time: Tue Apr 16 17:57:07 GMT 2024

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

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

Back to the top