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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:46:05+00:00 2026-05-27T20:46:05+00:00

I heard that using System.out.println for logging purposes is a very bad practice and

  • 0

I heard that using System.out.println for logging purposes is a very bad practice and this may force the server to fail.

I don’t use this approach but I am very interested in knowing why System.out.println could make so trash things when used in backend code.

  • 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-27T20:46:06+00:00Added an answer on May 27, 2026 at 8:46 pm

    System.out.println is an IO-operation and therefor is time consuming.
    The Problem with using it in your code is, that your program will wait until the println has finished. This may not be a problem with small sites but as soon as you get load or many iterations, you’ll feel the pain.

    The better approach is to use a logging framework.
    They use a message queue and write only if no other output is going on.

    And another benefit is that you can configure separate log files for different purposes.
    Something your Ops team will love you for.

    Read more here:

    • http://logging.apache.org/log4j/1.2/manual.html
    • Logger vs. System.out.println
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have often heard that using break s in Java is considered bad practice,
I have heard that using exception trapping is not a recommended practice for number
I've heard that projects developed using TDD are easier to refactor because the practice
I am running Tomcat inside Eclipse. Is there any harm in using System.out.println only
I currently use C for numerical computations. I've heard that using C++ Expression Templates
I heard that microsoft does not recommend using DataSets and DataTables in new projects.
I heard that you could right-shift a number by .5 instead of using Math.floor().
I've heard from someone that they´re using a business process automation tool (like Weblogic
(I'm using Visual C++ 2008) I've always heard that main() is required to return
I have heard that in C++, using an accessor ( get...() ) in a

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.