Win a copy of Design for the Mind this week in the Design 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
Marshal
Pie
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic