Skip to main content

RootKit custom logging Lib

Project description

rkt_logger_lib - Python library

Package Version

quality reliability_rating security_rating vulnerabilities coverage maintainability

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.

source

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rkt_logger_lib-1.3.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rkt_logger_lib-1.3.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file rkt_logger_lib-1.3.0.tar.gz.

File metadata

  • Download URL: rkt_logger_lib-1.3.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for rkt_logger_lib-1.3.0.tar.gz
Algorithm Hash digest
SHA256 b5dc8a126ef9bd36017d7533cdcc8d335c5fc4e36f51611e977628d3f463d173
MD5 237d690104999860a597fe7cfd8ca80a
BLAKE2b-256 9250b91ae3c8d655cdb5dbf300422babdb4da8a84bfd43ecb12588a8849fb0f9

See more details on using hashes here.

File details

Details for the file rkt_logger_lib-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: rkt_logger_lib-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for rkt_logger_lib-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eea67ae8da09d2ac861c861002d67f961f2a574c077c80a04c2c33f1e5c8768a
MD5 4273b719733ea148cb830fa1e0caed62
BLAKE2b-256 78e22520c3134a161fa22c94b8c232f33d5d9176b752e0798e02f65ce09ba5a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page