🔥 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

Free 51 Websites for Learning Education and Courses

🛑 లక్à°·à°²ు à°–à°°్à°šుà°ªెà°Ÿ్à°Ÿి à°•ాà°²ేà°œీà°²్à°²ో à°¨ేà°°్à°šుà°•ోà°²ేà°¨ి à°µిà°·à°¯ాలను, à°«్à°°ీà°—ా à°¨ేà°°్à°ªింà°šే 51 à°…à°¦్à°­ుతమైà°¨ à°µెà°¬్‌à°¸ైà°Ÿ్à°²ు ఇవే! 🛑 à°Žà°¡్à°¯ుà°•ేà°·à°¨్ and à°•ోà°°్à°¸ుà°²ు: Co...