• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logging slf4j configuration through code.

 
archit thakur
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to use slf4j and logback libraries for logging in my project. I want to do the configuration through code rather than through xml.







and afetrwards, I am catching localLoger in . and then using it for logging via . Idea about where I have got wrong it is not making the new file logFile.log, and printing log messages on screen.
 
Winston Gutkowski
Bartender
Pie
Posts: 10509
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
archit thakur wrote:I am trying to use slf4j and logback libraries for logging in my project...

Archit,

Please DontWriteLongLines (←click), because it makes your thread very hard to read. I suggest that you use the 'Edit' key to break them up; I'd do it myself, but there's a lot of them.

Thanks

Winston
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic