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.

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).

Where can I find these engines? More specifically, where can I find the logs for them?

PS: I'm running on MacOS

asked 26.02.2020 at 05:31

sorin's gravatar image

sorin
(suspended)
accept rate: 100%

edited 28.02.2020 at 03:34

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958


Workaround for the Axon.ivy Designer logs issue: ...until a fix is available:

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. >> fix it as follows until an official fix is ready

  • create a directory 'xpertivy' in the user home directory
  • copy the 'log4jconfig.xml' from Axon.ivy Designer.app > Contents > Eclipse > configuration into the 'xpertivy' directory
  • edit the log4jconfig.xml in this newly created xpertivy directory
  • in the FileLog appender section. Adjust the 'File' parameter so that after ${user.dir} an additional part ../Eclipse is added. So the final file looks as this: <param name="File" value="${user.dir}/../Eclipse/logs/ivy.log"/>
  • save log4jconfig.xml and restart your designer.
  • now logs should be written to the Axon.ivyDesigner app > Contents > Eclipse > logs > ivy.log

alt text


Logs for the Design time runtime enviroment can be found in various locations


If your want logs from the engine used during maven builds:

  • use the commandline option '-X' e.g. mvn clean verify -X ...to see debug log outputs
  • some logs are also visible here: http://axonivy.github.io/project-build-plugin/release/8.0/start-test-engine-mojo.html#engineLogFile
  • in maven builds the engine can be consumed from various locations. Standard location is [user.home]/.m2/repository/.cache/ivy/... /logs
  • 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.
link

answered 27.02.2020 at 05:33

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 20.04.2020 at 05:34

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 Ivy.log().info("something") 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.

(27.02.2020 at 05:56) sorin sorin's gravatar image

Ok, so I see the error regarding the Designer writing logs, it's trying to write in /Applications/Axon.ivy Designer 7.3.app/Contents/Eclipse/logs and throwing the following error:

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) ...

(27.02.2020 at 06:04) sorin sorin's gravatar image

Is there a way around this?

I've tried to create the logs directory, I've tried to chmod it to 777, still the same error.

If I move the Designer to a different place rather than /Applications, would it help?

Is there any permission I grant in "System Preferences" that would help?

(27.02.2020 at 06:08) sorin sorin's gravatar image

didn't test it, but maybe a symlinking this /logs directory into your user home will help.

(27.02.2020 at 09:57) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

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.

(27.02.2020 at 12:13) sorin sorin's gravatar image

So, apparently adding Ivy.log().setLevel(Level.ALL); 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.

I guess the default log level was ERROR?

(27.02.2020 at 15:40) sorin sorin's gravatar image

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.

I'll enrich the existing issue regarding runtime logs on mac (XIVY-3526) and try to raise the pressure on this topic.

(28.02.2020 at 03:39) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
showing 5 of 7 show 2 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×78
×22
×7

Asked: 26.02.2020 at 05:31

Seen: 1,762 times

Last updated: 20.04.2020 at 05:34