Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Print ATL console output to file from Java
Print ATL console output to file from Java [message #1694524] Tue, 05 May 2015 23:17 Go to next message
Yasser Khan is currently offline Yasser KhanFriend
Messages: 23
Registered: October 2011
Junior Member
How can I print the console output of ATL programs invoked from java?
Re: Print ATL console output to file from Java [message #1694527 is a reply to message #1694524] Wed, 06 May 2015 01:07 Go to previous message
Yasser Khan is currently offline Yasser KhanFriend
Messages: 23
Registered: October 2011
Junior Member
solved like this:

Logger logger = ATLLogger.getLogger();
FileHandler fh = new FileHandler("log.txt");
fh.setFormatter(ATLLogFormatter.INSTANCE);
logger.addHandler(fh);
Previous Topic:Error running RegularVM transformation from Java
Next Topic:Create a copy of an output-pattern-element
Goto Forum:
  


Current Time: Wed Jan 17 07:43:02 GMT 2018

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

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