RootKit custom logging Lib
Project description
rkt_logger_lib - Python library
Python Version 3.7.2
What is Python?
Python is an interpreted high-level general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant indentation. Its language constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.
Libraries
- Logger: overlay of logging library
Use it
Install
(venv) my_project> pip install rkt_logger_lib [--index-url https://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]
You can use one-by-one each lib
from rkt_logger_lib import Logger
l = Logger(caller_class="My_Super_Project")
l.set_logger(level="DEBUG", caller_class="My_Super_Project")
l.add(caller="My_Super_Project", message="This is a test DEBUG message", level="DEBUG")
l.add(caller="My_Super_Project", message="This is a test INFO message", level="INFO")
l.add(caller="My_Super_Project", message="This is a test WARNING message", level="WARNING")
l.add(caller="My_Super_Project", message="This is a test ERROR message", level="ERROR")
l.add(caller="My_Super_Project", message="This is a test CRITICAL message", level="CRITICAL")
Output (as file, sdtout or both)
03/03/2022 18:27:19 :: [Logger] :: INFO :: Create logger for 'My_Super_Project'
03/03/2022 18:27:19 :: [Logger] :: INFO :: add 'StreamHandler' in 'My_Super_Project' logger
03/03/2022 18:27:19 :: [Logger] :: INFO :: add 'FileHandler' in 'My_Super_Project' logger
03/03/2022 18:27:19 :: [My_Super_Project] :: DEBUG :: This is a test DEBUG message
03/03/2022 18:27:19 :: [My_Super_Project] :: INFO :: This is a test INFO message
03/03/2022 18:27:19 :: [My_Super_Project] :: WARNING :: This is a test WARNING message
03/03/2022 18:27:19 :: [My_Super_Project] :: ERROR :: This is a test ERROR message
03/03/2022 18:27:19 :: [My_Super_Project] :: CRITICAL :: This is a test CRITICAL message
Contributing
If you find this library useful here's how you can help:
- Send a merge request with your kickass new features and bug fixes
- Help new users with issues they may encounter
- Support the development of this library and star this repo!
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rkt_logger_lib-1.4.4.tar.gz.
File metadata
- Download URL: rkt_logger_lib-1.4.4.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dbee5bbd8ae34c43d9c686df664a35fdf9b04b01d75f5f896b21a21067a2fe2
|
|
| MD5 |
a6407408e369e386e493987810f2eae5
|
|
| BLAKE2b-256 |
ff64bbc218ad2cb562fce4de65f1b933e6d106679be31220c0ed3dde6d7c5ef2
|
File details
Details for the file rkt_logger_lib-1.4.4-py3-none-any.whl.
File metadata
- Download URL: rkt_logger_lib-1.4.4-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a182b290f1ff28a900acfa3bdf593da24118f15b012354a0e6ef4e3771ef632
|
|
| MD5 |
0c509cc7c2493428b3e49a371fe374d5
|
|
| BLAKE2b-256 |
7014b2201f906558a4c78239cfe263ec5a49250587667d6e649bdbf9f4120b79
|