Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem faced while logging through log4j  RSS feed

ujjawal rohra
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I have an application that uses log4j to log to a file. Now from this application I call a batch file which calls another application in a separate JVM and uses log4j with a separate root logger. The application being called through batch file logs normally in a file. The problem is that when an error occurs in this application(which is called through batch file) then no logging is done in its log file, that is logging hangs and when the main application which calls the batch file is stopped then the error messages and the rest messages are logged to this file. The ideal behavior should be that all messages whether they be error also should be logged to the log file without stopping the main application.

Can anyone suggest a solution or the reason of this ?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!