Results 1 to 6 of 6

Thread: SLF4J or log4j

  1. #1
    nn12 is offline Member
    Join Date
    Sep 2008
    Posts
    85
    Rep Power
    0

    Default SLF4J or log4j

    Hi, which logging mechanism would you prefer based upon your past experience. I recently heard about SLF4J that its better than log4j, but would like to hear from you.

    Thanks

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    I agree with you, because the slf4j is more flexible tools, you can integrate it with other logger tools and include log4j too.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    nn12 is offline Member
    Join Date
    Sep 2008
    Posts
    85
    Rep Power
    0

    Default

    Thanks. How about commons logging?

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    So Do you have special questions? I repeat slf4j can integrate other loggers tools
    SLF4J Manual
    Skype: petrarsentev
    http://TrackStudio.com

  5. #5
    nn12 is offline Member
    Join Date
    Sep 2008
    Posts
    85
    Rep Power
    0

    Default

    Petr, No specific questions as such. Just wanted to be clear among these 3 logging tools. In what case would someone like to integrate one logger tool with another?

  6. #6
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    I took part in many big projects and usually we use log4j for logger tools. because log4j have many modules console, file, database, email, and you can create yourself append.
    But In opensource projects usually use slf4j, because when you use this library in your projects you can just change loggers tools add need integrate library.
    Last edited by Petr; 02-11-2011 at 01:27 PM.
    Skype: petrarsentev
    http://TrackStudio.com

Similar Threads

  1. log4j
    By haj1st in forum Eclipse
    Replies: 5
    Last Post: 01-23-2011, 02:17 PM
  2. Replies: 1
    Last Post: 09-20-2010, 08:32 AM
  3. log4j
    By swapna_d in forum New To Java
    Replies: 7
    Last Post: 08-04-2010, 12:23 AM
  4. Regarding Log4j
    By sidiq in forum New To Java
    Replies: 0
    Last Post: 04-07-2008, 07:35 PM
  5. Log4j
    By chakri in forum New To Java
    Replies: 1
    Last Post: 02-08-2008, 10:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •