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

  • Home
  • SEARCH
  • 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
  • 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. 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

How do I make Log4net only log Info level logs? Is that even possible?
I am using the following method: set_browser_log_level 'off' but my log level continues to
I want to log onto Stack Overflow using OpenID, but I thought I'd set
We log values and we only log them once in a table. When we
Should log classes open/close a log file stream on each write to the log
My log file is: Wed Nov 12 blah blah blah blah cat1 Wed Nov
My log file in SQL Server used up all the space on my disk.
When I log into a remote machine using ssh X11 forwarding, Vista pops up
In the build log I'd like to the start and end time of each
I'm pretty new to ruby environments and I was looking for a nice logging

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.