coderz.py

Keep Coding Keep Cheering!

Python Logging Classes and Functions

In Python, the logging module provides several classes and functions to help you log messages in your code. We can create our own logger by instantiating the logging.Logger class and giving it a unique name. This is useful when your application has multiple modules, as you can use separate loggers for each module to keep […]

January 26, 2023 | python | No comments

Logging basicConfig()function

The basicConfig() function of the Python logging module is used to configure the logging system. It sets the basic configuration of the logging system, including the level of messages to be logged, the format of the log messages, and the destination of the log messages. This method takes a set of keyword arguments (also called […]

January 23, 2023 | python | No comments

Advertisement