Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to view log4j log in eclipse console

 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know we can use log4j to record log in files in certain format. Wondering how can I view them in eclipse console so I can immediately track the progress of code flow ? i.e. just want to have log4j or apache common log included in my code but want to view them in eclipse console as those "System.out.print" ?
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be configure a ConsoleAppender and then attach your logger package with this console appender. Something like:

 
bacon. tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!