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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:15:51+00:00 2026-05-10T17:15:51+00:00

The log levels WARN, ERROR and FATAL are pretty clear. But when is something

  • 0

The log levels WARN, ERROR and FATAL are pretty clear. But when is something DEBUG, and when INFO?

I’ve seen some projects that are annoyingly verbose on the INFO level, but I’ve also seen code that favors the DEBUG level too much. In both cases, useful information is hidden in the noise.

What are the criteria for determining log levels?

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T17:15:51+00:00Added an answer on May 10, 2026 at 5:15 pm

    I don’t think there are any hard-and-fast rules; using the log4j-type levels, my ‘rules of thumb’ are something like:

    • FATAL: the app (or at the very least a thread) is about to die horribly. This is where the info explaining why that’s happening goes.
    • ERROR: something that the app’s doing that it shouldn’t. This isn’t a user error (‘invalid search query’); it’s an assertion failure, network problem, etc etc., probably one that is going to abort the current operation
    • WARN: something that’s concerning but not causing the operation to abort; # of connections in the DB pool getting low, an unusual-but-expected timeout in an operation, etc. I often think of ‘WARN’ as something that’s useful in aggregate; e.g. grep, group, and count them to get a picture of what’s affecting the system health
    • INFO: Normal logging that’s part of the normal operation of the app; diagnostic stuff so you can go back and say ‘how often did this broad-level operation happen?’, or ‘how did the user’s data get into this state?’
    • DEBUG: Off by default, able to be turned on for debugging specific unexpected problems. This is where you might log detailed information about key method parameters or other information that is useful for finding likely problems in specific ‘problematic’ areas of the code.
    • TRACE: ‘Seriously, WTF is going on here?!?! I need to log every single statement I execute to find this @#$@ing memory corruption bug before I go insane’

    Not set in stone, but a rough idea of how I think of it.

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

Sidebar

Related Questions

Hi normally in Log4j priority levels are as follows DEBUG < INFO < WARN
I can't figure out how to log info-level messages to stdout, but everything else
I can log info messages without a problem, but can't figure out how to
I'm setting up log4net and want to write debug messages in debug.log, info messages
I've been influenced by the log levels that I and my teams have used
I've got a module I want to log in Django that looks something like
Is there a cleaner way for me to write debug level log statements? In
I have a normal INFO level log for application. What I need is to
Which setting do I now use to produce logging output with 'log.info' statements within
What log level should one use for method exit/enter? The log4j levels follow the

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.