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 8668269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:10:19+00:00 2026-06-12T18:10:19+00:00

Fact is most people beginning java programming just leave exception handling for later. As

  • 0

Fact is most people beginning java programming just leave exception handling for later. As the e.printStackTrace(); littering my code have annoyed me for too long now and having read the very informative article here I realized that the Right Thing is apparently to rethrow the exceptions and log in the highest possible level (at least for checked exceptions – which is the thing I care for at the moment). So I have to look at loggers (which is a whole subject I guess, meaning should I create them per class, per method, should I wrap them etc) but first things first : should I go for some specialized lib (like apache’s log4j) or even better for a wrapper (like SLF4J) or stay with java.util.logging ? What are you people using and why ?

Thanks

  • 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-06-12T18:10:20+00:00Added an answer on June 12, 2026 at 6:10 pm

    In my (an many other’s) opinion, you should absolutely use a third-party logging solution – java.util.logging has lots of ‘issues’. Log4J is handy, and widely-used, but SLF4J is better. Better yet, Logback is an SLF4J implementation that was written by the same person who wrote Log4J, so it’s the current recommended solution for those who would otherwise use Log4J.

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

Sidebar

Related Questions

Like most people, I have learned Rails before Ruby and now I would like
I'm using git (in fact, msysgit) 1.6.4 on Windows. Most of the time I'm
I've seen mspec used with nunit on some blogs and discussions. In fact, most
Fact: I'm not that good with jQuery. Problem: I have a form containing dynamically
In fact I have been assigned with a task to secure my DLL, so
Can a fact table have no keys at all? or if it can, is
As most people know, P = NP is unproven and seems unlikely to be
Hello fellow Computer People! I could do this myself, but was just wondering if
I have a few objects that are incredibly similar. In fact, they use STI
I'm a Java programmer who started programming Ruby on Rails one year ago. I

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.