<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Where to find engine 'logs' using the Mac Designer?</title><link>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer</link><description>&lt;p&gt;I've "inherited" an Axon.ivy project that I have to maintain, I've installed the Designer and I also see that the project has a pom.xml setup, so I can also build it from the command line.&lt;/p&gt;
&lt;p&gt;Now, the Designer I understand runs an embedded engine. Also, the pom.xml has a plugin with a goal that also downloads an engine (project-build-plugin:7.3.0:installEngine).&lt;/p&gt;
&lt;p&gt;Where can I find these engines? More specifically, where can I find the logs for them?&lt;/p&gt;
&lt;p&gt;PS: I'm running on MacOS&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 28 Feb 2020 03:39:52 -0500</lastBuildDate><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4430</link><description>&lt;p&gt;I think the default log level should be 'debug'. However it sound to me as if the symlink fix at least partially works. 
Most users rarely use the /logs dir but examine the RuntimeLog+ErrorLog view. But don't hesitate to tell us if you have other strange execution behavior related to the logs. &lt;/p&gt;
&lt;p&gt;I'll enrich the existing issue regarding runtime logs on mac (XIVY-3526) and try to raise the pressure on this topic.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 28 Feb 2020 03:39:52 -0500</pubDate><guid>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4430</guid></item><item><title>Comment by sorin on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4429</link><description>&lt;p&gt;So, apparently adding &lt;code&gt;Ivy.log().setLevel(Level.ALL);&lt;/code&gt; as early as possible in the code solves my logging needs inside the Designer, as I can see the log entries in "Runtime log" now.&lt;/p&gt;
&lt;p&gt;I guess the default log level was ERROR?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sorin</dc:creator><pubDate>Thu, 27 Feb 2020 15:40:48 -0500</pubDate><guid>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4429</guid></item><item><title>Comment by sorin on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4428</link><description>&lt;p&gt;Hmm, that's funny, I can't find that error anymore, the one I quoted from above. However, I can still not see any logs in the folder I've linked.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sorin</dc:creator><pubDate>Thu, 27 Feb 2020 12:13:00 -0500</pubDate><guid>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4428</guid></item><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4427</link><description>&lt;p&gt;didn't test it, but maybe a symlinking this /logs directory into your user home will help.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 27 Feb 2020 09:57:13 -0500</pubDate><guid>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4427</guid></item><item><title>Comment by sorin on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4426</link><description>&lt;p&gt;Is there a way around this?&lt;/p&gt;
&lt;p&gt;I've tried to create the logs directory, I've tried to chmod it to 777, still the same error.&lt;/p&gt;
&lt;p&gt;If I move the Designer to a different place rather than /Applications, would it help?&lt;/p&gt;
&lt;p&gt;Is there any permission I grant in "System Preferences" that would help?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sorin</dc:creator><pubDate>Thu, 27 Feb 2020 06:08:18 -0500</pubDate><guid>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4426</guid></item><item><title>Comment by sorin on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4425</link><description>&lt;p&gt;Ok, so I see the error regarding the Designer writing logs, it's trying to write in &lt;code&gt;/Applications/Axon.ivy Designer 7.3.app/Contents/Eclipse/logs&lt;/code&gt; and throwing the following error:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;java.lang.IllegalArgumentException: Parameter 'directory' is not a directory: /Applications/Axon.ivy Designer 7.3.app/Contents/Eclipse/logs
    at org.apache.commons.io.FileUtils.validateListFilesParameters(FileUtils.java:541)
    at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:517)
...&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sorin</dc:creator><pubDate>Thu, 27 Feb 2020 06:04:58 -0500</pubDate><guid>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4425</guid></item><item><title>Comment by sorin on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4424</link><description>&lt;p&gt;The "Runtime log" was my first option, but although it is filtered at "DEBUG" level, I cannot see anything else than errors. I'm trying to log some stuff through &lt;code&gt;Ivy.log().info("something")&lt;/code&gt; in Java classes and I cannot see it in the "Runtime log".
The standard Eclipse "Error log" windows shows nothing except some IDE-related errors.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sorin</dc:creator><pubDate>Thu, 27 Feb 2020 05:56:57 -0500</pubDate><guid>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer#4424</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer/4423</link><description>&lt;p&gt;&lt;strong&gt;Workaround for the Axon.ivy Designer logs issue: ...until a fix is available&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;there is an open issue that prevents logs files form being written to Axon.ivyDesigner/logs dir under Mac. Due to the way MacOS handles applications. &amp;gt;&amp;gt; fix it as follows until an official fix is ready&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;create a directory 'xpertivy' in the user home directory&lt;/li&gt;
&lt;li&gt;copy the 'log4jconfig.xml' from Axon.ivy Designer.app &amp;gt; Contents &amp;gt; Eclipse &amp;gt; configuration into the 'xpertivy' directory&lt;/li&gt;
&lt;li&gt;edit the log4jconfig.xml in this newly created xpertivy directory&lt;/li&gt;
&lt;li&gt;in the FileLog appender section. Adjust the 'File' parameter so that after ${user.dir} an additional part &lt;code&gt;../Eclipse&lt;/code&gt; is added. So the final file looks as this: &lt;code&gt;&amp;lt;param name="File" value="${user.dir}/../Eclipse/logs/ivy.log"/&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;save log4jconfig.xml and restart your designer.&lt;/li&gt;
&lt;li&gt;now logs should be written to the Axon.ivyDesigner app &amp;gt; Contents &amp;gt; Eclipse &amp;gt; logs &amp;gt; ivy.log&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/log4jconfig_modified.png"&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Logs for the Design time runtime enviroment can be found in various locations&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.axonivy.com/doc/8.0.2/designer-guide/process-modeling/simulation-debugging.html?highlight=runtime%20log#runtime-log-view"&gt;https://developer.axonivy.com/doc/8.0.2/designer-guide/process-modeling/simulation-debugging.html?highlight=runtime%20log#runtime-log-view&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;or the standard 'Error Log' view of Eclipse&lt;/li&gt;
&lt;li&gt;Axon.ivy Designer.app/Contents/Eclipse/Logs/ivy.log  (see workaround above)&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;If your want logs from the engine used during maven builds:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;use the commandline option '-X' e.g. &lt;code&gt;mvn clean verify -X&lt;/code&gt;   ...to see debug log outputs&lt;/li&gt;
&lt;li&gt;some logs are also visible here: &lt;a href="http://axonivy.github.io/project-build-plugin/release/8.0/start-test-engine-mojo.html#engineLogFile"&gt;http://axonivy.github.io/project-build-plugin/release/8.0/start-test-engine-mojo.html#engineLogFile&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;in maven builds the engine can be consumed from various locations. Standard location is [user.home]/.m2/repository/.cache/ivy/... /logs   &lt;/li&gt;
&lt;li&gt;however; if you migrate to 8.0 LTS once ... and can use the latest project-build-plugin:8.0.1 there are more log outputs available: the engine being used is printed to console and one can easily navigate to that directory and examine its log directory.&lt;/li&gt;
&lt;/ul&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 27 Feb 2020 05:33:52 -0500</pubDate><guid>https://answers.axonivy.com/questions/4418/where-to-find-engine-logs-using-the-mac-designer/4423</guid></item></channel></rss>