Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7504099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:27:32+00:00 2026-05-29T21:27:32+00:00

Recently I published my open source java game server code to github and faced

  • 0

Recently I published my open source java game server code to github and faced the following dilemma “which logging should I use”.I want my library to have most “ease of use” for end developer. I hope to create a pseudo-wiki out of this question so that others facing same issue can have a single point of reference.

1) If your open source project is a simple java library, what are the options available for logging.
a. Use your own logging logic
b. Print to console,err
c. Use a library like log4j, slf4j etc
2) What are the best practices? Which one of the above is the general preference for open source libraries?
3) For some of the famous logging frameworks out there, like log4j, slf4j, commons-logging etc what are known issues that need to be considered while selecting it as your logging library.
4) Will my choice of logging framework impact another library which uses mine? Is there possibility of incompatibilities if I use a specific library?

If you have some additional comments like “log only to console”, “dont use logging” etc then please justify.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:27:34+00:00Added an answer on May 29, 2026 at 9:27 pm

    Never write directly to console 😉 If someone uses your library he might want to have console for himself, not for your logs.

    slf4j (and commons-logging) is not a logging framework. It’s an abstraction layer which lets you program vs one interface and use the implementation of your (or the end user of your library) choice, be it log4j, java logging or whatever. I’d go for that as it leaves the choice of implementation up to the user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had recently stabilised developments of a major open source library written in Java.
I have recently published a first stable release for my open source library http://jooq.sourceforge.net
I recently published my first MVC 2 project to a commercial web server, running
I had a working WCF published to IIS on my server. Recently I created
I have an MVC3 application that is recently published to a web server. This
recently i uploaded my application to production server, which have ajax jquery calling my
I published several free and paid app in the Market. I recently get several
I recently introduced HTML into some RSS feeds that I publish (which up to
Recently, I started changing some of our applications to support MS SQL Server as
Recently we got a new server at the office purely for testing purposes. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.