🔥 Welcome to my blog! Latest updates available now. Visit daily! 🔥 🔥 Click Here for Latest Updates – Visit My Blog 🔥
🔥 Latest Updates 📊 GP Grade Finder 📢 Government Services Info 🆕 New Schemes Updates

PYTHON LOGGING

Logging the Exceptions:

It is highly recommended to store complete application flow and exceptions information to a file.

This process is called logging.

The main advantages of logging are:

We can use log files while performing debugging.

We can provide statistics like number of requests per day, etc.

To implement logging, Python provides one inbuilt module called logging.

Logging Levels:

Depending on the type of information, logging data is divided according to the following 6 levels in Python.

CRITICAL ==> 50

Represents a very serious problem that needs high attention.

ERROR ==> 40

Represents a serious error.

WARNING ==> 30

Represents a warning message, some caution needed.

It is an alert to the programmer.

INFO ==> 20

Represents a message with some important information.

DEBUG ==> 10

Represents a message with debugging information.

NOTSET ==> 0

Represents that the level is not set.

No comments:

Post a Comment

Thank you Very Much.For Given Comment

Birth & Death Registration Rules 2026

జనన, మరణాà°² నమోà°¦ు à°µిà°·à°¯ంà°²ో 2026 à°…à°•్à°Ÿోబర్ 1 à°¨ుంà°šి à°•ొà°¤్à°¤ à°¨ిà°¬ంధనలు అమల్à°²ోà°•ి à°°ాà°¨ుà°¨్à°¨ాà°¯ి. 🔹 21 à°°ోà°œుà°²్à°²ోà°ªు: à°¸ాà°§ాà°°à°£ à°°ిà°œిà°¸్à°Ÿ్à°°ేà°·à°¨్ 🔹 21 à°°ోà°œుà°² తర్à°µాà°¤...