Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Logging slf4j configuration through code.  RSS feed

 
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
Posts: 10573
65
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!