Based on the answer from:

https://answers.axonivy.com/questions/1852/how-can-i-configure-a-separate-log-file-for-the-runtime-log

And:

https://stackoverflow.com/questions/5117758/configuring-rollingfileappender-in-log4j

I see we could customize the file name of the separated log file by using org.apache.log4j.rolling.RollingFileAppender instead of org.apache.log4j.RollingFileAppender Then I try to add log4j-extras (https://mvnrepository.com/artifact/log4j/apache-log4j-extras/1.2.17) to {engine_dir}/plugins. But it doesn't work.

Do I miss anything?

asked 26.09 at 04:23

dieuph's gravatar image

dieuph
11115
accept rate: 0%

What is exactly your config you tried (generally we support only xml config for logging)?

(27.09 at 07:27) SupportIvyTeam ♦♦ SupportIvyTeam's gravatar image

You can already configure the file name in the standard: org.apache.log4j.DailyRollingFileAppender.

(01.10 at 03:02) SupportIvyTeam ♦♦ SupportIvyTeam's gravatar image

I want to combine a rotate log file based on date time and file size also. That why I try to put log4j-extras into Ivy Engine. Anyway, the answer from qtdan93 could help. Thank you for your suggestion <3

(01.10 at 23:30) dieuph dieuph's gravatar image

Here is the very good example how could you extend Axon Ivy features (log4j to be concrete).

https://github.com/ivy-samples/ivy-extension-demos

Because the log4j need to be loaded and initialized when the engine start. So you need to prepare your plugins jar file to meet some of the Ivy requirements.

link

answered 01.10 at 00:19

qtdan93's gravatar image

qtdan93
56227
accept rate: 100%

edited 01.10 at 00:20

Yes just copying a jar file to the plugins folder is not enough!

(01.10 at 03:02) SupportIvyTeam ♦♦ SupportIvyTeam's gravatar image

Thank you for your suggestion @qtdan93, It could work.

(01.10 at 23:31) dieuph dieuph's gravatar image
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:

×121
×9

Asked: 26.09 at 04:23

Seen: 83 times

Last updated: 01.10 at 23:31