Metadata-Version: 2.1
Name: rkt_logger_lib
Version: 1.3.1
Summary: RootKit custom logging Lib
Author: RootKit
Author-email: rootkit@rootkit-lab.org
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Natural Language :: French
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rkt_tool_lib

# rkt_logger_lib - Python library

![Package Version](https://badgen.net/badge/Package%20Version/latest%20-%201.3.0/green?scale=1.2)

![quality](https://sonarqube.tprc.ovh/api/project_badges/measure?project=python_rkt_lib_toolkit_AXqQ32evGCA0VuRY8SuD&metric=alert_status)
![reliability_rating](https://sonarqube.tprc.ovh/api/project_badges/measure?project=python_rkt_lib_toolkit_AXqQ32evGCA0VuRY8SuD&metric=reliability_rating)
![security_rating](https://sonarqube.tprc.ovh/api/project_badges/measure?project=python_rkt_lib_toolkit_AXqQ32evGCA0VuRY8SuD&metric=security_rating)
![vulnerabilities](https://sonarqube.tprc.ovh/api/project_badges/measure?project=python_rkt_lib_toolkit_AXqQ32evGCA0VuRY8SuD&metric=vulnerabilities)
![coverage](https://sonarqube.tprc.ovh/api/project_badges/measure?project=python_rkt_lib_toolkit_AXqQ32evGCA0VuRY8SuD&metric=coverage)
![maintainability](https://sonarqube.tprc.ovh/api/project_badges/measure?project=python_rkt_lib_toolkit_AXqQ32evGCA0VuRY8SuD&metric=sqale_rating)

##### 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](https://en.wikipedia.org/wiki/Python_(programming_language))

## Libraries
* Logger: overlay of logging library

## Use it
### Install
```bash
 (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 
```python
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)
```log
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](https://gitlab.tprc.ovh/python/rkt_lib_toolkit/-/issues) they may encounter
- Support the development of this library and star this repo!
