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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:39:27+00:00 2026-06-15T16:39:27+00:00

I am developing an application using Django that works similar to a project manager.

  • 0

I am developing an application using Django that works similar to a project manager. For this reason, the system should be capable of storing information about everything. When I say everything I refer to the actions the users do, the errors that occurred while doing an action, etc.
I have a class Log and one of its attributes is called action_type, this attribute specifies what kind of action just happened. I am supposed to have 5 kinds of types:

INFO: this log stores the information related to user’s actions such as creating a project, create other users, etc.

DEBUG: should store comments made by the developers that will allow them to detect errors.

ERROR: shows errors that occurred in the system but they don’t affect the system’s functionality.

WARNING: it’s for potentially damaging actions.

FATAL: unexpected errors, exceptions and security breaches.

I can only come up with logical logs for INFO.

Could you tell me some reasonable logs that I should include in this and the other categories?

  • 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-15T16:39:29+00:00Added an answer on June 15, 2026 at 4:39 pm

    The answer will depend greatly on exactly what your application does, but my basic approach is this:

    Each time you get ready to log an event, just think about the event and it will be clear where it belongs. Did it kill your application? It’s fatal. Did it prevent something from working correctly? It’s an error. Could it prevent something from working, and did we just get lucky this time? It’s a warning. Does anyone care? Info. Otherwise, if you still need to log it, it must be for debugging purposes.

    In your particular context, it sounds like you might only be trying to log user actions. If that is the case, the only actions that could be fatal would be ones for which you don’t provide an undo option (or, I suppose, if the user is able to order a piano bench and a length of strong rope through your application). I also couldn’t really imagine any debug-level logs coming from user actions. Because of this, I assume you will be logging code level events in addition to user actions.

    FATAL: This should only appear in the logs when your application actually crashes, and possibly alongside 500 responses. You might generate these within your wsgi application in a catch-all, only when the process would otherwise have died.

    ERROR: Likely tied to http error responses. This is typically for errors caused by something outside your application. Things that happen in your code are probably expected and <= warning level, or unexpected and fatal. Errors might be a 404 from the user making a typo in a url, validation errors on form submission, or authentication errors. From the other direction, errors might be returned from remote web services that you contact or IO errors from the os.

    WARNING: For things that don’t break anything, but that might bite you if you keep it up. Examples are using deprecated apis and anywhere something only worked because of the default (time zone, character encoding, etc). Maybe certain input values result in warnings, too, like setting a due date in the past.

    INFO: General, healthy operation. Someone created a database row (a new project or a task?), created an account, logged in or out, a socket was successfully opened, etc.

    DEBUG: Just what it says. Output that you will usually turn off once the code is working correctly. Method entry/exit, object instantiation, field values at various points in the code, counters. Whatever you need to figure out why your program is crashing right now, as you work on it.

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

Sidebar

Related Questions

I developing application which using geo-location. Should i ask user right for this when
I have a client's Django project that I'm developing locally, using Mercurial for version
I am developing an Django application using the Django 1.3.1 release : https://code.djangoproject.com/browser/django/tags/releases/1.3.1 I
I'm using the Django manage.py runserver for developing my application (obviously), but it takes
I'm developing an IFrame application in Facebook (using pyfacebook and Django) and could not
Currently developing an application using the newest version of symfony, obtained through PEAR. This
I am developing an application using opencv as my college project, it's almost done
I am developing a web application using Python, Django and MySql. I have a
I am developing an application on the Google App Engine using Python (and Django,
I am developing a web application using django, postgreSQL, html5 and javascript. The application

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.