Hello All,

How do I configure the log4j to show the ivy.log.debug() messages for an application ?

Best Regards, Yordan

asked 18.08.2016 at 13:56

Stelt0's gravatar image

Stelt0
19333742
accept rate: 12%

edited 19.08.2016 at 10:22

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k21857


You can change the debug level of the runtime log for an application: see http://developer.axonivy.com/doc/latest/EngineGuideHtml/monitoring.html#d5e4535

But there is no way to control the core engine logs to only show outputs if the logging API is used from a certain application.

See http://answers.axonivy.com/tags/logging/ for more information

link

answered 19.08.2016 at 10:24

Reguel%20Wermelinger's gravatar image

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

edited 19.08.2016 at 10:26

Yes, I tried to configure it that way, but nothing happens.

this is my configuration:

appender name="RuntimeLog" class="org.apache.log4j.DailyRollingFileAppender"> 
  param name="File" value="${user.dir}/logs/EventDashBoard2.log"/> 
  param name="DatePattern" value="'.'yyyy-MM-dd"/> 
  layout class="org.apache.log4j.IvyLog4jLayout"> 
  param name="DateFormat" value="HH:mm:ss"/>
  /layout> 
/appender>

category name="runtimelog.EventDashBoard2.EventDashBoard2" class="ch.ivyteam.log.Logger">
  appender-ref ref="RuntimeLog"/> 
  priority value="DEBUG"/>
/category>

for this application and process:

alt text

(22.08.2016 at 10:09) Stelt0 Stelt0's gravatar image
1

I guess that the category name is case sensitive. If so the name should be switched to : runtimelog.EventDashboard2.EventDashBoard2

(22.08.2016 at 11:17) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

and another hint. the configuration changes in the log4jxml are not instantly applied to a running engine. the engine must be re-booted to change it's logger settings

(22.08.2016 at 11:19) Reguel Werme... ♦♦ Reguel%20Wermelinger'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:

×28
×6

Asked: 18.08.2016 at 13:56

Seen: 1,271 times

Last updated: 22.08.2016 at 11:20