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
Hashes for pkglogger-0.0.16.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adfcf4f4eb3a699b9cf0f435fd06ddedfecdc9e666eb33154333d7a4a3c5f69c |
|
MD5 | c4e6648f5f3f1525cf42520fda3092b1 |
|
BLAKE2b-256 | 7c972b6ffc4474bb73a2961371f3bcc9bc3fe500c6cc1492c39c6f746924ffd6 |