This package help you to keep logs
Project description
"""
Using this Package you can able to track majorly Sysstem Generated followings :
1. Log Time
2. Exception
3. Exception Type
4. Exception Object
5. Exception Traceback Summary
6. Exception Traceback Detailed
7. Exception Traceback Line No.
"""
##Steps to run the package :
- pip install pkglogger==
- from pkglogger import pkglogger
logger() ''' You need to call this function at TRY block
Var 1 : Pass the file name you want to create \n Var 2 : Pass Function name if you want to track function wise logs. To do this, you want keep this call at Function Level\n Var 3 : If you want to give any specific value as Task Status\n Var 4 : Path where you want to create the log file. Please pass value as string.\n Var 5 : If any other parameter you want keep track, pass variable name as you want\n Var 6 : Pass the value of the additional variable you have added ''' Example : logger('log3','loggertest','','','URL','http://test.com123')
exceptionlogger() ''' You need to call this funcion at EXCEPTION bloack
Var 1 : Pass the file name you want to create\n Var 2 : Pass Function name if you want to track function wise logs. To do this, you want keep this call at Function Level\n Var 3 : Please pass the exception value. Example : except Exception as e\n Var 4 : If you want to give any specific value as Task Status\n Var 5 : Path where you want to create the log file. Please pass value as string.\n Var 6 : If any other parameter you want keep track, pass variable name as you want\n Var 7 : Pass the value of the additional variable you have added\n '''
*Return the exception details as well *
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pkglogger-0.0.16.0.tar.gz
.
File metadata
- Download URL: pkglogger-0.0.16.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7359561318d15fe33252e4a468401a4faa7efae5f966ecbbdc5b6cde51669ad4 |
|
MD5 | 5db99a5f415c11305fecdd6eb6903be5 |
|
BLAKE2b-256 | 8d1ad49d55505ceb024ab459ad82e23ad9e411aff278ed1c8f5f996bdecf37ea |
File details
Details for the file pkglogger-0.0.16.0-py3-none-any.whl
.
File metadata
- Download URL: pkglogger-0.0.16.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adfcf4f4eb3a699b9cf0f435fd06ddedfecdc9e666eb33154333d7a4a3c5f69c |
|
MD5 | c4e6648f5f3f1525cf42520fda3092b1 |
|
BLAKE2b-256 | 7c972b6ffc4474bb73a2961371f3bcc9bc3fe500c6cc1492c39c6f746924ffd6 |