Skip to main content

python_custom_logging

logpath = "YOUR LOG PATH/LOG_FILE_NAME.log"
loggername = "YOUR LOGGER NAME"
logformat = ("%(asctime)s [%(levelname)s]: %(lineno)d : %(message)s ") --YOUR LOG FORMAT
log_level = logging.INFO -- YOUR LOG LEVEL
logfilehandlertime = "H" -- logfilehandlertime (H,M,S)
interval = 1 - intreval of time 1 hour,1 sec ,1 minutes
backupCount=0 file we keep of logs if 0 mean all log file will be there and if set to 2 then latest 2 log file will be there and rest will be deleted

Create obj before use

from python_custom_logging import *

logging_config_obj=python_custom_logging(logpath,loggername,logformat,log_level,logfilehandlertime,interval,backupCount).create_log()

For Example:

logging_config_obj.info('YOUR LOGS')

logging_config_obj.error('YOUR LOGS')

Release files for python-custom-logging 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for python-custom-logging 1.0.1
File Interpreter ABI Platform
python_custom_logging-1.0.1-py3-none-any.whl Python 3 none any Details

Release files / python_custom_logging-1.0.1-py3-none-any.whl

Download URL python_custom_logging-1.0.1-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4744cfe52a85be0a44cc0c837c5d86d92e073b26094ef68f875c591f251ab61d
BLAKE2b-256 checksum
How to use checksums
936aa2f3a1da72af809ed790616b1a42d28ae4ed01bbba732afe3aaea7ce4731
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page